I'm using ODM fixtures where some documents reference others, e.g. $customer->setUser($this->getReference('user1')).
I have an odd problem with the load call that hangs somewhere - I can't figure out where exactly or what's causing it to hang. At first I though it was because of an infinite loop in one of the documents - I noticed that calling print_r($this->getReference('user1')) in one of my fixtures goes on forever. But even if I don't use that reference in the fixture, load hangs on the $manager->flush() call.
Has anyone encountered related issue? What's the best way to debug such behaviour?
I'm using ODM fixtures where some documents reference others, e.g.
$customer->setUser($this->getReference('user1'))
.I have an odd problem with the
load
call that hangs somewhere - I can't figure out where exactly or what's causing it to hang. At first I though it was because of an infinite loop in one of the documents - I noticed that callingprint_r($this->getReference('user1'))
in one of my fixtures goes on forever. But even if I don't use that reference in the fixture,load
hangs on the$manager->flush()
call.Has anyone encountered related issue? What's the best way to debug such behaviour?