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();