X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/60e532d5368faa6cbb048d61cac5695c0b972782..6235f8f993d9a97f08d00ce578c86da020d7e978:/Entity/Dance.php diff --git a/Entity/Dance.php b/Entity/Dance.php index 59896cd..8d83062 100644 --- a/Entity/Dance.php +++ b/Entity/Dance.php @@ -225,6 +225,10 @@ class Dance { * @return bool */ public function removeUser(User $user): bool { + if (!$this->users->contains($user)) { + return true; + } + //Remove from owning side $user->removeSubscriber($this);