Add games per week to season object and preferred day of week for team object
This commit is contained in:
@@ -40,6 +40,9 @@ class Team
|
||||
#[ORM\ManyToOne(inversedBy: 'teams')]
|
||||
private ?Facility $homeFacility = null;
|
||||
|
||||
#[ORM\Column(length: 255, nullable: true)]
|
||||
private ?string $dayOfTheWeekForHomeGame = null;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->seasons = new ArrayCollection();
|
||||
@@ -199,4 +202,16 @@ class Team
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getDayOfTheWeekForHomeGame(): ?string
|
||||
{
|
||||
return $this->dayOfTheWeekForHomeGame;
|
||||
}
|
||||
|
||||
public function setDayOfTheWeekForHomeGame(?string $dayOfTheWeekForHomeGame): static
|
||||
{
|
||||
$this->dayOfTheWeekForHomeGame = $dayOfTheWeekForHomeGame;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user