diff --git a/Service/CommandSchedulerExecution.php b/Service/CommandSchedulerExecution.php index 4fb0d9b..8a18996 100644 --- a/Service/CommandSchedulerExecution.php +++ b/Service/CommandSchedulerExecution.php @@ -221,7 +221,7 @@ public function executeCommand( if (false === $this->em->isOpen()) { #$this->output->writeln('Entity manager closed by the last command.'); - $this->em = $this->em->getConnection(); + $this->em = $this->em::create($this->em->getConnection(), $this->em->getConfiguration()); } // Reactivate the command in DB