[TYPO3-mvc] deleteAll : none of the foreign table rows are marked as deleted
Jochen Rau
jochen.rau at typoplanet.de
Wed Jul 22 22:12:26 CEST 2009
Hi Matthias.
Mathias Schreiber [wmdb >] wrote:
> 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 ;)
We definitely need a comfortable, and easy to understand solution for this.
My vision is to define my Domain Models not in the Object Oriented
Paradigma (OOP). I would like to define it as a Semantic Model. The OOP
isn't the best to define constraints like "in a Department must work at
least 3 Employees". That's possible if I use a Semantic Model (defined
in OWL for example).
Regards
Jochen
--
Every nit picked is a bug fixed
More information about the TYPO3-project-typo3v4mvc
mailing list