You are not logged in.
Pages: 1
Hello,
I think in documentation in section 5.1.6. TID fields is a small bug. In first example in this section exists a code:
TSQLOrder = class(TSQLRecord)
...
published Client: TID
read fClient write fClient;
published OrderedBy: TSQLRecordClientID
read fOrderedBy write fOrderedBy;
published OrderedByCascade: TSQLRecordClientToBeDeletedID
read fOrderedByCascade write fOrderedByCascade;
But in this code is an syntax error. I think it should be property word instead of published word.
I have one question to the TID fields. In mORMot is now possible to simulate set default and delete cascade behavior for delete operation. It is very smart and usefull. But what with the most usual behavior from databases: restrict? Is it possible to define TID type to avoid deletion of record which are linked with records in other tables?
Last edited by ASiwon (2015-03-18 20:14:51)
best regards
Adam Siwon
Offline
Documentation should be fixed by http://synopse.info/fossil/info/ee2910ae4c
About avoiding deletion when there is still pending items, it is not implemented yet AFAIR.
You could create a feature request ticket.
Thanks for the feedback!
Offline
About avoiding deletion when there is still pending items, it is not implemented yet AFAIR.
You could create a feature request ticket.
Done.
best regards
Adam Siwon
Offline
Pages: 1