diff --git a/Command/ReindexCommand.php b/Command/ReindexCommand.php index 539a8c5b..b6de7407 100644 --- a/Command/ReindexCommand.php +++ b/Command/ReindexCommand.php @@ -44,7 +44,7 @@ protected function execute(InputInterface $input, OutputInterface $output) { $toReindex = []; - if ($input->hasArgument('entityName')) { + if ($input->getArgument('entityName')) { $filter = $this->getEntityManager()->getRepository($input->getArgument('entityName'))->getClassName(); } else { $filter = null;