[TYPO3-mvc] Persist Object only if dirty

Chris Wolff - AERTiCKET AG cwolff at aer.de
Mon Feb 10 12:53:14 CET 2014


Hi Philip,
you dont have to call _isDirty() This is handled by extbase.

You should never be required to call method starting with an underscore.
Underscore methods are just for extbase internal use. And only a helper construct if there is no nice
Way to make this method inaccessible for you. 

Regards chris

-----Ursprüngliche Nachricht-----
Von: typo3-project-typo3v4mvc-bounces at lists.typo3.org [mailto:typo3-project-typo3v4mvc-bounces at lists.typo3.org] Im Auftrag von Philipp
Gesendet: Montag, 10. Februar 2014 12:32
An: typo3-project-typo3v4mvc at lists.typo3.org
Betreff: [TYPO3-mvc] Persist Object only if dirty

Hey, a simple question about extbase:
When adding an object with repository->update(object) and calling persistAll on the persistenceManager

Does extbase somewhere check if the entity was updated or do i have to call _isDirty() manually before making update?

i browsed through the code - looks like i have to do it by my own, just wanted to be sure.

kind regards.
_______________________________________________
TYPO3-project-typo3v4mvc mailing list
TYPO3-project-typo3v4mvc at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc



More information about the TYPO3-project-typo3v4mvc mailing list