lphuberdeau / Neo4j-PHP-OGM

A doctrine2 style library to access neo4j graphs
156 stars 45 forks source link

Detach on serialization? #96

Open RedactedProfile opened 9 years ago

RedactedProfile commented 9 years ago
lphuberdeau commented 9 years ago

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

RedactedProfile commented 9 years ago

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" < notifications@github.com> 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 .