8000 Edited src/Symfony/Bundle/DoctrineMongoDBBundle/Command/LoadDataFixtu… · symfony/symfony@56a66ba · GitHub
[go: up one dir, main page]

Skip to content

Commit 56a66ba

Browse files
brikoufabpot
authored andcommitted
Edited src/Symfony/Bundle/DoctrineMongoDBBundle/Command/LoadDataFixturesDoctrineODMCommand.php via GitHub
1 parent 539e0e4 commit 56a66ba

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Symfony/Bundle/DoctrineMongoDBBundle/Command/LoadDataFixturesDoctrineODMCommand.php

Lines changed: 3 additions & 1 deletion
< 85B2 tr class="diff-line-row">
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,14 @@ protected function execute(InputInterface $input, OutputInterface $output)
9090
$loader->loadFromDirectory($path);
9191
}
9292
}
93+
94+
$fixtures = $loader->getFixtures();
9395
if (!$fixtures) {
9496
throw new InvalidArgumentException(
9597
sprintf('Could not find any fixtures to load in: %s', "\n\n- ".implode("\n- ", $paths))
9698
);
9799
}
98-
$fixtures = $loader->getFixtures();
100+
99101
$purger = new MongoDBPurger($dm);
100102
$executor = new MongoDBExecutor($dm, $purger);
101103
$executor->setLogger(function($message) use ($output) {

0 commit comments

Comments
 (0)
0