doctrine/data-fixtures — pull request #82 by fazy (2012-10-31 16:07:37+00:00)
Title: Dependent fix

Fix for a problem when Loader::getFixtures() is called more than once, in the case where the DependentFixtures interface is used.

In this scenario, each call to getFixtures() would return an increasing number of duplicated fixtures (internally, the same fixtures were being added onto the end of the orderedFixtures array).

This caused a problem in my project because the same fixtures were loaded twice, causing a primary key violation. It could also have an impact on performance.

The new test case DependentFixtureTest::test_inCaseGetFixturesReturnsDifferentResultsEachTime illustrates the problem (if you run this to the unmodified Loader.php, it will fail).