You can't dump a proxy object without XDebug or similar tools (which limit the dumped object size).
The problem is really simple: Proxy -> references EntityManager -> references UnitOfWork -> contains Proxy This obviously leads to a recursive data-structure dump. Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ On 6 May 2016 at 18:12, Dennis Fedco <dmatve...@fedco-usa.com> wrote: > I posted a question about DoctrineProxies construct that lives inside > Doctrine\ORM\Configuration and creates huge proxy objects. > > > http://stackoverflow.com/questions/37076711/why-does-doctrine-orm-configurations-doctrineproxies-object-contain-the-unive > > I will be curious to see if someone can offer feedback, or explain why it > gets so big. > > And particularly if doing something like > > $instance = $em->find(Item::class, $id); > > > means passing a HUGE object (300Mb or more when printed out) via the > assignment operator. > i.e.is the object cloned, or just passed by reference? > > Dennis > > -- > 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 doctrine-user+unsubscr...@googlegroups.com. > To post to this group, send email to doctrine-user@googlegroups.com. > Visit this group at https://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 doctrine-user+unsubscr...@googlegroups.com. To post to this group, send email to doctrine-user@googlegroups.com. Visit this group at https://groups.google.com/group/doctrine-user. For more options, visit https://groups.google.com/d/optout.