[TYPO3-mvc] Repository does not remove
Christian Peters
chp at digitale-avantgarde.com
Tue Apr 3 09:44:13 CEST 2012
Thank you, Daniel.
With "are not respected", do you mean "they are not deleted" or "deleted"?
(Sorry for my bad english).
My usecase is:
I'm importing documents from an api and this api may request to delete
documents on my t3. I then want to delete everything that is only
referenced by the document (such as images, referenced documents etc.).
How would you do this in Extbase?
And 2nd: How would you delete records in terms of removing (not setting a
delete flag, totally remove 'em)?
Thank you very much.
Chris
2012/4/2 Dennis Ahrens <dennis.ahrens at googlemail.com>
> Hi Chris,
>
>
> On 02.04.2012 18:06, Christian Peters wrote:
>
>> 1. *@cascade remove* only removes children that are *not* referenced /
>> connected to other children
>> 2. *@cascade remove *does not remove children of children if they did
>> not annotate with *@cascade remove *themself?
>>
>
> Post
> |-Comments (with @cascade remove)
>
> $postRepo->remove($post);
>
> All comments associated with the post will be removed - AFAIK other
> references of the comments will not be respected in this case [1].
>
> regards
> Dennis
>
> [1] http://git.typo3.org/TYPO3v4/**CoreProjects/MVC/extbase.git?**
> a=blob;f=Classes/Persistence/**Backend.php;h=**
> 2e581c9af1f60da19991ac074a4ee0**0523c1e29f;hb=HEAD#l832<http://git.typo3.org/TYPO3v4/CoreProjects/MVC/extbase.git?a=blob;f=Classes/Persistence/Backend.php;h=2e581c9af1f60da19991ac074a4ee00523c1e29f;hb=HEAD#l832>
>
> ______________________________**_________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc@**lists.typo3.org<TYPO3-project-typo3v4mvc at lists.typo3.org>
> http://lists.typo3.org/cgi-**bin/mailman/listinfo/typo3-**
> project-typo3v4mvc<http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc>
>
>
More information about the TYPO3-project-typo3v4mvc
mailing list