restore more templates in dashboard

This commit is contained in:
Tykayn 2025-02-16 23:13:44 +01:00 committed by tykayn
parent e9d896d4a7
commit cd4b678002
5 changed files with 61 additions and 10 deletions

View file

@ -83,6 +83,9 @@ class User implements UserInterface, PasswordAuthenticatedUserInterface
#[ORM\OneToMany(targetEntity: SerieFestival::class, mappedBy: 'user')]
private Collection $seriesFestival;
#[ORM\OneToOne(cascade: ['persist', 'remove'])]
private ?Festival $activeFestival = null;
public function __construct()
{
@ -372,4 +375,16 @@ class User implements UserInterface, PasswordAuthenticatedUserInterface
return $this;
}
public function getActiveFestival(): ?Festival
{
return $this->activeFestival;
}
public function setActiveFestival(?Festival $activeFestival): static
{
$this->activeFestival = $activeFestival;
return $this;
}
}