Hi Marco, Thank you for the reply. As part of some applications I see the following happening:
1st - Request a) fetch data from persistence layer b) map them to Objects c) use some in the request itself d) save some in a session layer 2nd - Request (part of the same application process - perhaps the submit of the form) a) restore the session data b) update the Objects based on the form data c) persist some of the objects back - updating the content While not all objects would have the Doctrine annotation, some may have, even if I use them for read only purposes. Right now I can do it fine because they are POPO and I map them manually when I first do the search. After this I can serialize/deserialize at will. Of course the idea is to use Doctrine to prevent me from having to do such mapping manually - and to have all the extra features Doctrine provides. In this scenario what would be me course of action? On 3 April 2015 at 18:19, Marco Pivetta <[email protected]> wrote: > Hi Mario, > > On 3 April 2015 at 23:16, mbneto <[email protected]> wrote: > >> Hi, >> >> It has been a while since I tried to use MongoODM/ORM but when I did we >> had an issue where I could not simply do a serialize/unserialize between >> requests as a way to prevent going to the persistence layer. >> >> I was wondering if we do have solutions for this now with the latest >> versions. >> >> Regards, >> Mario >> > > The more I thought about this problem, the less I actually got inclined > towards supporting serializing the graph. > > For instance, I opened https://github.com/doctrine/doctrine2/pull/1241, > and such a change would make serialization pretty much impossible (as > serializing = loading the entirety of all associations recursively). > > Good 'ol `Serializable` should be used (with care), IMO. > > Marco Pivetta > > http://twitter.com/Ocramius > > http://ocramius.github.com/ > > -- > You received this message because you are subscribed to the Google Groups > "doctrine-user" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/doctrine-user. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "doctrine-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/doctrine-user. For more options, visit https://groups.google.com/d/optout.
