Skip to content

Commit

Permalink
Merge pull request #32 from adamlundrigan/patch-1
Browse files Browse the repository at this point in the history
Pull Entity Manager from the Doctrine CLI helper instead of hardcoding it
  • Loading branch information
Ocramius committed Jul 6, 2014
2 parents 1a3571c + 0db3782 commit 0132973
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 0132973

Please sign in to comment.