[TYPO3-mvc] Persist objects after adding or updating
Dirk Wenzel
wenzel at webfox03.de
Sat Jul 26 08:48:54 CEST 2014
Hi all,
is it necessary to persist extbase objects manually after adding or
updating them?
In ObjectController:
createAction($object) {
$object->setValue('foo');
$this->objectRepository->add($object);
?>> $this->persistenceManager->persistAll();
$this->redirect('show' ...)
}
updateAction($object) {
$object->setValue('foo');
$this->objectRepository->update($object);
?>> $this->persistenceManager->persistAll();
$this->redirect('show' ...)
}
I do not need to access any (updated) property after adding/updating in
this actions.
Thank you for any advice!
Dirk
More information about the TYPO3-project-typo3v4mvc
mailing list