Skip to content

Commit

Permalink
Pull Entity Manager from the Doctrine CLI helper instead of hardcodin…
Browse files Browse the repository at this point in the history
…g it
  • Loading branch information
adamlundrigan committed Jul 6, 2014
1 parent 1a3571c commit 0db3782
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DoctrineDataFixtureModule/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function init(ModuleManager $e)

/* @var $sm ServiceLocatorInterface */
$sm = $e->getParam('ServiceManager');
$em = $sm->get('doctrine.entitymanager.orm_default');
$em = $cli->getHelperSet()->get('em')->getEntityManager();
$paths = $sm->get('doctrine.configuration.fixtures');

$importCommand = new ImportCommand($sm);
Expand Down

0 comments on commit 0db3782

Please sign in to comment.