From 58eb6141a8818b818ac57c72c7296d81c7283d51 Mon Sep 17 00:00:00 2001 From: Daniel Guzman Date: Thu, 25 Jul 2024 01:56:06 +0200 Subject: [PATCH] Fix --- src/Service/Season/createSeason/HandleCreateSeason.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Service/Season/createSeason/HandleCreateSeason.php b/src/Service/Season/createSeason/HandleCreateSeason.php index e57a92e3..9750182d 100644 --- a/src/Service/Season/createSeason/HandleCreateSeason.php +++ b/src/Service/Season/createSeason/HandleCreateSeason.php @@ -85,6 +85,7 @@ class HandleCreateSeason $teamDto->name = $teamEntity->getName(); $teamDto->active = true; $teamEntity->setActive(true); + $this->entityManager->persist($seasonEntity); $this->entityManager->persist($teamEntity); $this->entityManager->flush(); $teamDto->id = $teamEntity->getId();