[TYPO3-mvc] deleteAll : none of the foreign table rows are marked as deleted
Mathias Schreiber [wmdb >]
mathias.schreiber at wmdb.de
Wed Jul 22 13:55:59 CEST 2009
Jochen Rau schrieb:
>> In case of 1:1 and uni-directional 1:n it does know about this.
>> Maybe this can be implemented this way with some sort of config-switch.
>
> Nope. The given example illustrates a 1:n case as an Employee is
> normally assignet to only one Department.
Correct.
So now we're talking contraints :)
That's what I meant.
If I define a contraint within an relation I can choose, whether I want
to implement that the deletion of child records should be handled by the
system.
Sketch:
define strict relation between table A and table B.
If a record is deleted, delete the children as well.
Sketch 2:
define a "soft" relation.
If a record is deleted, the child records are handed over to a callback
function asking what to do with them.
If magic, then REAL magic ;)
--
TYPO3 certified interogator
T3DD09 Entertainer
More information about the TYPO3-project-typo3v4mvc
mailing list