public function dissociateCompetencyFromResources(Competency $competency, array $nodes)
    {
        foreach ($nodes as $node) {
            $competency->removeResource($node);
        }
        $this->om->persist($competency);
        $this->om->flush();
    }