doctrine / data-fixtures

Doctrine2 ORM Data Fixtures Extensions
http://www.doctrine-project.org
MIT License
2.77k stars 224 forks source link

dosctrine:mongodb:fixtures:load hangs #211

Closed stefda closed 8 years ago

stefda commented 8 years ago

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?

stefda commented 8 years ago

Sorry, I had a blocking process inside the postPersist call. Solved.