Skip to content

Commit

Permalink
don't reseed between files
Browse files Browse the repository at this point in the history
  • Loading branch information
bendavies committed Jul 8, 2015
1 parent 4cd0a22 commit a46db52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Fixtures/FixtureManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,10 @@ public function load(FixtureSet $set, array $initialReferences = array())
// References contain, _all_ objects loaded. Needed only for loading.
$references = $initialReferences;

$this->initSeedFromSet($set);

// Load each file
foreach ($set->getFiles() as $file) {
// Use seed before each loading, so results will be more predictable.
$this->initSeedFromSet($set);

$loader = $loaders[$file['type']];

Expand Down

0 comments on commit a46db52

Please sign in to comment.