Hi venyii, This is actually normal, since persistent collections may have references to either loops in your object graph (as Jasper says, due to bidirectional associations) or references to the ObjectManager (EntityManager), which itself references all persistent collections and all managed entities.
You obviously cannot dump that without having XDebug + a decent (low) nesting level set for dumps. Otherwise, use `Doctrine\Common\Util\Debug#dump()`, which saves you from recursion in dumps. Cheers, Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ On 14 March 2014 13:42, venyii <[email protected]> wrote: > Hi guys, > > I don´t know if this is a Doctrine problem, but maybe someone here can > help me solve this anyway :) > > If you have a look at the *HomeController*, you can see my test code. > Everything is working fine with $match->getUsers() as long as I don´t try > to dump the result or dump the array copy. It´d run forever if I hadn´t set > a memory_limit. Sometimes it even fails with a 'Notice: Corrupt member > variable name'. Seems like a recursion problem? > > *I tried a 'doctrine standalone' version with those entities and had no > problems*, So could it be a Symfony/configuration issue? > > *Entities:* > > - *Match*: A match can have multiple attending players/users > - *MatchUser*: Holds the relation between Match and User with some > additional data > - *User*: Standard user entity (extended FOS-UB) > > *Files:* > > - partialoutput.txt: I just dumped the result of > '$match->getUsers()->toArray()' running endlessly in there (shortened it a > lot, since it was > 200.000 lines) > - pgsf.sql: My test database with some data (User: testuser PW: 1234) > > *Repo:* https://bitbucket.org/venyii/pgsf/src > > Let me know if you need any more information and *thanks* in advance for > your help! > > -- > 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.
