When using Value Object as IDs in Doctrine, the ProxyReferenceRepository fails to unserialize the reference repository. This is caused by the fact that json_encode and json_decode does not know how to persist information about these objects (as it expects to have a plain data structure with string for IDs).
This PR solves it by using serialize and unserialize instead.
When using Value Object as IDs in Doctrine, the ProxyReferenceRepository fails to unserialize the reference repository. This is caused by the fact that
json_encode
andjson_decode
does not know how to persist information about these objects (as it expects to have a plain data structure with string for IDs).This PR solves it by using
serialize
andunserialize
instead.