[TYPO3-mvc] validation of extended fe_user model in detailAction
Stephan Petzl
spetzl at gmx.at
Tue Apr 20 10:44:58 CEST 2010
Franz Koch schrieb:
> Hey,
>
>> yeah, i wondered about that as well. and then i thought: ok looks like
>> extbase validates data while saving AND while loading. can someone
>> confirm this?
>
> are you using a property with lazy-loading relation in that model? If
> so, it's a extbase bug. I noticed by adding some debug output to the
> storageBackend that extbase is happily updating my database although
> nothing ever changed. I tracked it down to lazy-loading object storages,
> or let's better say nested objects with lazy-loading objects inside.
> Reason is, that caused by the lazy-loading the object state is beeing
> changed and thus the direct object comparison extbase is doing to
> determine changes will fail, and thus is updating the data in the DB. I
> already filed a ticket on forge with a possible solution (don't use
> object comparison but always call a _isDirty method on object storages).
>
thanks for explaining!
Do you mean properties of type Tx_Extbase_Persistence_ObjectStorage?
So basically each relation?
--
Best Regards
Stephan Petzl
More information about the TYPO3-project-typo3v4mvc
mailing list