X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/c812e773a8195a42a718ce2de0a4e9bca65382aa..8a58af7e48b04df76b204d8e66aadfb44c97eec2:/Entity/Location.php?ds=sidebyside diff --git a/Entity/Location.php b/Entity/Location.php index 984e8d8..613e462 100644 --- a/Entity/Location.php +++ b/Entity/Location.php @@ -444,6 +444,10 @@ class Location { * @return bool */ public function removeUser(User $user): bool { + if (!$this->users->contains($user)) { + return true; + } + //Remove from owning side $user->removeSubscriber($this);