inscription and unscribe done

This commit is contained in:
Olivier PARPAILLON
2024-11-25 14:56:08 +01:00
parent b98dfd38c8
commit f852b0682a
3 changed files with 45 additions and 0 deletions

View File

@@ -202,6 +202,7 @@ class Sortie
{
if (!$this->participants->contains($participant)) {
$this->participants->add($participant);
$participant->addSortiesParticipant($this);
}
return $this;
@@ -210,6 +211,7 @@ class Sortie
public function removeParticipant(Participant $participant): static
{
$this->participants->removeElement($participant);
$participant->removeSortiesParticipant($this);
return $this;
}