From b194e340df50533e576ee419a11fd1a1f4bf7c6e Mon Sep 17 00:00:00 2001 From: "bg.pastukh" Date: Fri, 6 Nov 2020 16:29:50 +0200 Subject: [PATCH] #182 fix command refresh --- Command/ExecuteCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }