Skip to content

Commit 51292a9

Browse files
committed
Merge pull request #114 from symfony-cmf/fix_initializers
Let executor purge the database
2 parents 0b1dd1e + ba6a535 commit 51292a9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Functional/DbManager/PHPCR.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,13 @@ public function purgeRepository($initialize = false)
7979
*/
8080
public function loadFixtures(array $classNames, $initialize = false)
8181
{
82-
$this->purgeRepository();
83-
8482
$loader = new ContainerAwareLoader($this->container);;
8583

8684
foreach ($classNames as $className) {
8785
$this->loadFixtureClass($loader, $className);
8886
}
8987

90-
$this->getExecutor($initialize)->execute($loader->getFixtures(), true);
88+
$this->getExecutor($initialize)->execute($loader->getFixtures(), false);
9189
}
9290

9391
/**

0 commit comments

Comments
 (0)