From 3c1a8ce2edfa07ba4b2416ece1628145b6ecd42a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20G=C3=B3mez?= Date: Sun, 6 Oct 2024 11:57:51 +0200 Subject: [PATCH] Rolling back change that introduce the fix --- Service/CommandSchedulerExecution.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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