[TYPO3-mvc] Persistence/ObjectStorage: Model seems to be unimpressed by modifying its properties

Franz Koch typo3.RemoveForMessage at elements-net.de
Tue Jul 26 10:37:22 CEST 2011


Hey,

> [2] After removeAll() is called (only) one of those entries is removed.
>      If I call removeAll() subsequently the other entry is removed also.
>      What's that about? Why aren't all entries removed at once?

hmm, could be that the internal array pointer if the objectStorage get's 
confused, please give this line a try instead (and keep the others of 
course):

$allgemeineVoraussetzungen->removeAll(clone $allgemeineVoraussetzungen);

-- 
kind regards,
Franz Koch


More information about the TYPO3-project-typo3v4mvc mailing list