[TYPO3-mvc] delete all related objects
Frans van der Veen[netcreators]
frans at netcreators.com
Tue May 31 10:33:25 CEST 2011
Hi Franz,
On 05/30/2011 01:20 PM, Franz Koch wrote:
> you're right - I forgot about the dirty flag and the way objectStorages
> are persisted. The improvement of dirty monitoring is on our todo list
> and thus the solution should/could work in future. Until then use either
> your workaround or this:
>
> $relatedObjects = $object->getRelatedObjects();
> $relatedObjects->removeAll($object->getRelatedObjects());
> $object->setRelatedObjects($relatedObjects);
Thank you for your suggestion and confirmation. Since you already have
it on your to-do I will not open an issue for it. If you need me to,
please let me know.
Regards,
Frans
More information about the TYPO3-project-typo3v4mvc
mailing list