public function dissociateAbilityFromResources(Ability $ability, array $nodes)
    {
        foreach ($nodes as $node) {
            $ability->removeResource($node);
        }
        $this->om->persist($ability);
        $this->om->flush();
    }