agregar pabellon a tabla de equipos, mejorar respuesta de registro de usuario, normalizar mensajes de error

This commit is contained in:
Daniel Guzman
2024-05-23 00:22:06 +02:00
parent 557b586b76
commit 82282ebbca
387 changed files with 889 additions and 606 deletions
+15
View File
@@ -37,6 +37,9 @@ class Team
#[ORM\OneToOne(inversedBy: 'team', cascade: ['persist', 'remove'])]
private ?User $captain = null;
#[ORM\ManyToOne(inversedBy: 'teams')]
private ?Facility $homeFacility = null;
public function __construct()
{
$this->seasons = new ArrayCollection();
@@ -184,4 +187,16 @@ class Team
return $this;
}
public function getHomeFacility(): ?Facility
{
return $this->homeFacility;
}
public function setHomeFacility(?Facility $homeFacility): static
{
$this->homeFacility = $homeFacility;
return $this;
}
}