agregar pabellon a tabla de equipos, mejorar respuesta de registro de usuario, normalizar mensajes de error
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user