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