/** * Remove role * * @param Role $role */ public function removeRole(Role $role) { $role->removeUser($this); $this->role->removeElement($role); return $this; }