Neo4j-PHP-OGM icon indicating copy to clipboard operation
Neo4j-PHP-OGM copied to clipboard

Detach on serialization?

Open RedactedProfile opened this issue 9 years ago • 2 comments

  • Ignore for the moment -

RedactedProfile avatar Oct 29 '15 04:10 RedactedProfile

->getEntity() can provide the underlying serializable from memory. I guess the newer JSONSerializable could be implemented.

lphuberdeau avatar Oct 29 '15 11:10 lphuberdeau

I actually was not aware of getEntity, thank you for pointing that out

I seem to have misdirected my attention as what was happening was mis-serialization of ArrayCollection objects, getting both the elements and tracking arrays built in (where strangely in Doctrine this doesn't happen)

Perhaps an instruction to serialization is being missed? I have no earthly idea why this is happening On Oct 29, 2015 4:41 AM, "Louis-Philippe Huberdeau" < [email protected]> wrote:

->getEntity() can provide the underlying serializable from memory. I guess the newer JSONSerializable could be implemented.

— Reply to this email directly or view it on GitHub https://github.com/lphuberdeau/Neo4j-PHP-OGM/issues/96#issuecomment-152154598 .

RedactedProfile avatar Oct 29 '15 23:10 RedactedProfile