[TYPO3-mvc] remove related objects recursively with extbase
    Jan Kornblum 
    jan.kornblum at gmx.de
       
    Mon Jul  8 11:49:36 CEST 2013
    
    
  
Hi Domi,
> is there any recommended way to detach, delete and remove all objects related 
> to a deleted Object?
>
> Model A
>   -> Model B
>     -> Model C
>
> I need a function, that if I delete Model A, all relations to B and even 
> their relations to C also getting removed/detached.
Isn't exactly that done by an @cascade annotation in the model?
> I could write a function, but just interested if there is any recommended way 
> how to delete elements recursively, maybe through some persistence manager 
> calls.
Regards, Jan
    
    
More information about the TYPO3-project-typo3v4mvc
mailing list