[TYPO3-mvc] How to keep Domain Entity non-persistent

Franz Koch typo3.RemoveForMessage at elements-net.de
Wed Oct 19 10:57:42 CEST 2011


Hi,

> It worked for a while until i added some more properties. Since then i
> get the
> "Could not serialize Domain Object Tx_Myext_Domain_Model_Demand. It is
> neither an Entity with identity properties set, nor a Value Object."
> Error.
...
> The error is rised from
> Tx_Extbase_MVC_Web_Routing_UriBuilder::convertDomainObjectsToIdentityArrays()
> because the Demand object doesn't have a valid uid.
>
> How can i solve this issue?
> Is there a way to keep the Demand object volatile?

make it a valueObject and you can also pass it in URLs etc as it can be 
serialized then.

-- 
kind regards,
Franz Koch


More information about the TYPO3-project-typo3v4mvc mailing list