[TYPO3-mvc] Modifies objects inside objectStorages don't seem to get persisted

Franz Koch typo3.RemoveForMessage at elements-net.de
Mon Jan 24 14:04:20 CET 2011


Hey Kilian,

>> thanks, but that's not the case here. It's really related to the
>> incomplete _isDirty check in ObjectStorages.
>
> Did you manage to solve it the clean way?

no, not yet. I was working on TCA group-type support and was waiting for 
the changes from Jochen.

> I had the exact same problem and ended up using a child function tho
> mark teh object as dirty (Setting the dirty flag in the setter of the
> relating child):
>
> public function _isDirty($propertyName = NULL) {
> if($this->isDirty == TRUE) return TRUE;
> return parent::_isDirty($propertyName);
> }

It's already sufficient to trigger the attach and add one of the 
containing objects (or the modified one) again, but it's still no 
solution of course, but maybe a bit "cleaner" then adding an ugly hack.

-- 
kind regards,
Franz Koch


More information about the TYPO3-project-typo3v4mvc mailing list