[TYPO3-mvc] validation of extended fe_user model in detailAction

Franz Koch typo3.RemoveForMessage at elements-net.de
Mon Apr 19 19:44:26 CEST 2010


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).

-- 
kind regards,
Franz Koch


More information about the TYPO3-project-typo3v4mvc mailing list