inscription and unscribe done
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user