Fix
dyb-tech.com/LaLiga-BackEnd/pipeline/head This commit looks good Details

This commit is contained in:
Daniel Guzman 2024-07-25 01:56:06 +02:00
parent 11fd3953ca
commit 58eb6141a8
1 changed files with 1 additions and 0 deletions

View File

@ -85,6 +85,7 @@ class HandleCreateSeason
$teamDto->name = $teamEntity->getName(); $teamDto->name = $teamEntity->getName();
$teamDto->active = true; $teamDto->active = true;
$teamEntity->setActive(true); $teamEntity->setActive(true);
$this->entityManager->persist($seasonEntity);
$this->entityManager->persist($teamEntity); $this->entityManager->persist($teamEntity);
$this->entityManager->flush(); $this->entityManager->flush();
$teamDto->id = $teamEntity->getId(); $teamDto->id = $teamEntity->getId();