doctrine / data-fixtures

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

Attempted to call an undefined method named "addClass" of class "Doctrine\O RM\Internal\CommitOrderCalculator #217

Closed simon-rad closed 8 years ago

simon-rad commented 8 years ago

I have just installed a fresh instance of Symfony2.

composer require --dev doctrine/doctrine-fixtures-bundle

and when I run

php app/console doctrine:fixtures:load

I get this error

Attempted to call an undefined method named "addClass" of class "Doctrine\O RM\Internal\CommitOrderCalculator

I looked into the code and addClass is called on CommitOrderCalculator. https://github.com/doctrine/data-fixtures/blob/master/lib/Doctrine/Common/DataFixtures/Purger/ORMPurger.php#L151

But I have checked Doctrine repository and they don't have such method. https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/Internal/CommitOrderCalculator.php

Ocramius commented 8 years ago

Duplicate of #212