diff --git a/Command/ExecuteCommand.php b/Command/ExecuteCommand.php index 854fcd7a..0a057e09 100644 --- a/Command/ExecuteCommand.php +++ b/Command/ExecuteCommand.php @@ -118,7 +118,7 @@ protected function execute(InputInterface $input, OutputInterface $output) $noneExecution = true; foreach ($commands as $command) { - $this->em->refresh($this->em->find(ScheduledCommand::class, $command)); + $command = $this->em->find(ScheduledCommand::class, $command->getId()); if ($command->isDisabled() || $command->isLocked()) { continue; }