[TYPO3-mvc] Could not serialize Domain Object

Peter Falk pf at typoconsult.dk
Wed May 29 14:52:52 CEST 2013


Somehow the issue occur, when the object isn't persisted. So, what I am 
looking for is a way to do this redirect without persisting the object 
first.

/Peter

"Stefano Cecere"  skrev i meddelelsen 
news:mailman.1.1369822740.31110.typo3-project-typo3v4mvc at lists.typo3.org...

i use the same command without problems...
maybe the object is invalid? did you try  @dontvalidate $newBooking ?




On 29/05/13 11:56, Peter Falk wrote:
> Hi,
>
> Get this annoying error when trying to redirect from one
> action/controller to another:
>
> public function createAction(Tx_TcDsfBooking_Domain_Model_Booking
> $newBooking) {
>
>     if($this->request->getArgument('pHours') > 0) {
>         $this->redirect('index', 'Payment', NULL, array('booking' =>
> $newBooking), $this->settings['paymentPid']);
>     }
>     ...
>     ...
>     ...
> }
>
> Can anyone tell me what the problem is, and how to solve it?
>
> Regards
> Peter


-- 

-- --- ----- -------

Stefano Cecere
KRUR studio - http://krur.com 



More information about the TYPO3-project-typo3v4mvc mailing list