You are looking for a serializer. I suggest checking: - http://framework.zend.com/manual/2.3/en/modules/zend.stdlib.hydrator.html - http://jmsyst.com/libs/serializer
Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ On 14 December 2014 at 17:01, Nima Sadjadi <[email protected]> wrote: > > > Actually I want to do this: > http://community.sitepoint.com/t/create-api/107132/3?u=nimasdj > How is it possible? > > >> Hello, >> >> I am using this: >> http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/events.html#onflush >> if var_dump $entity, a very large object returns and if using >> Debug::dump($entity), a nice stdObject returns just for show but that is >> not an actual object that can be used with a hydrator. Is it possible to >> get a parseable entity object without containg useless data like the one >> var_dump($entity) shows? I need a parseable object like the one >> Debug::dump($entity) returns? possible? >> >> >> -- > 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.
