public function removeRole(Role $role) { if ($this->roles->contains($role)) { $this->roles->removeElement($role); } return $this; }