X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/2165a9bd9a68d72ab31f2c4c6f07e276736509da..60e532d5368faa6cbb048d61cac5695c0b972782:/Entity/Location.php 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);