X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/c812e773a8195a42a718ce2de0a4e9bca65382aa..82368211ddcdeb5272f7c49770c4bbade59d58df:/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);