public function removeRoleFromAdminTool(AdminTool $tool, Role $role) { $tool->removeRole($role); $this->om->persist($tool); $this->om->flush(); }