[TYPO3-mvc] Persist objects after adding or updating
Dirk Wenzel
wenzel at webfox03.de
Sat Jul 26 10:32:53 CEST 2014
Hi Matthew,
thanks for your quick reply.
It seems for the createAction redirecting doesn't work when ommiting the
persistAll() call. But forwarding does.
I got an error
#1260881688: Could not serialize Domain Object <Object> It is neither an
Entity with identity properties set, nor a Value Object.
when calling
$this->redirect('show', NULL, NULL, array('position'=>$newObject), ...);
So I conclude:
Calling forward(...) first finishes the createAction which triggers
persisting the newly created object.
Calling redirect(...) doesn't finishes the createAction and therefore
the object can not be serialized...
Cheers
Dirk
Am 26.07.14 09:30, schrieb Matthew Colton:
> no, you don't have to persist the object in that case.
More information about the TYPO3-project-typo3v4mvc
mailing list