Skip to content

Commit

Permalink
avoid deprecation notice from LoadDataFixturesDoctrineCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
craue committed Jun 7, 2019
1 parent 13b2e8e commit c223850
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Command/LoadDataFixturesDoctrineCommand.php
Expand Up @@ -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')) {
Expand Down

0 comments on commit c223850

Please sign in to comment.