diff --git a/Command/LoadDataFixturesDoctrineCommand.php b/Command/LoadDataFixturesDoctrineCommand.php index 18fc371d..11433848 100644 --- a/Command/LoadDataFixturesDoctrineCommand.php +++ b/Command/LoadDataFixturesDoctrineCommand.php @@ -84,7 +84,7 @@ protected function execute(InputInterface $input, OutputInterface $output) $ui = new SymfonyStyle($input, $output); /** @var ManagerRegistry $doctrine */ - $doctrine = $this->getContainer()->get('doctrine'); + $doctrine = $this->getDoctrine(); $em = $doctrine->getManager($input->getOption('em')); if (! $input->getOption('append')) {