#1 2015-03-18 20:13:34

ASiwon
Member
From: Poland
Registered: 2015-01-30
Posts: 82

TID fields documentation - question and mistake

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

#2 2015-03-18 20:42:49

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,371
Website

Re: TID fields documentation - question and mistake

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

#3 2015-03-23 22:14:34

ASiwon
Member
From: Poland
Registered: 2015-01-30
Posts: 82

Re: TID fields documentation - question and mistake

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

Board footer

Powered by FluxBB