mirror of
https://forge.chapril.org/tykayn/caisse-bliss
synced 2025-06-20 01:44:42 +02:00
restore more templates in dashboard
This commit is contained in:
parent
e9d896d4a7
commit
cd4b678002
5 changed files with 61 additions and 10 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue