[TYPO3-mvc] Calling persistAll() inside a loop

Martin Kutschker masi-no at spam-typo3.org
Wed Dec 29 21:36:16 CET 2010


Am 29.12.2010 18:49, schrieb Kevin Ulrich Moschallski:
> 
> So i tried to call persistAll() after i added the category to the repository which leads me to two
> problems:
> 
> - First, the performance isn't very nice.
> - Second, it seems that my fe_users are persisted more than one time

I think you can persist single object, no need to persist everything.

Anyway, your problem shows that the developer must be aware of the magic that is going on. Any query
may return stale results if you have altered or added objects to the repository, but didn't persist
the changes.

Masi


More information about the TYPO3-project-typo3v4mvc mailing list