[TYPO3-mvc] update calls replace.

Steffen Ritter info at rs-websystems.de
Tue Sep 14 13:25:45 CEST 2010


Am 14.09.2010 03:53, schrieb Braulio J. Solano-Rojas:
> Hello.
>
> I just wanted to notice that if one calls the repository update method
> on an object that has been created with ->setRespectStoragePage(FALSE)
> it will never work, since update calls replace and replace will query
> for the same object and there is no way to indicate that it has to do it
> with ->setRespectStoragePage(FALSE).
>
> The only workaround possible (I think) is using ->statement. :-(
>
> Bests,
>
> B.
the workaround is to overwrite the findByUid method in your repository 
and set setRespectStoragePage(FALSE)

regards


More information about the TYPO3-project-typo3v4mvc mailing list