Affects Version/s: 2.2
Fix Version/s: None
Security Level: All
I have the following entity:
When I serialize an object graph which references a Currency proxy, but this proxy is initialized, then this works as expected:
However, if the proxy is not initialized, then all properties are serialized as null, and the identity is lost:
That makes a merge() impossible once stored in a session, as the identity of the entity is now unknown.
I think the solution might be:
- either to have the proxy's $_identity field serialized as well
- or to have the $code (identity field) populated when the proxy is created.