plugin/competency/Manager/CompetencyManager.php
public function dissociateAbilityFromResources(Ability $ability, array $nodes)
    {
        foreach ($nodes as $node) {
            $ability->removeResource($node);
        }
        $this->om->persist($ability);
        $this->om->flush();
    }
public function dissociateAbilityFromResources(Ability $ability, array $nodes)
    {
        foreach ($nodes as $node) {
            $ability->removeResource($node);
        }
        $this->om->persist($ability);
        $this->om->flush();
    }
public function dissociateAbilityFromResources ( Ability $ ability , array $ nodes ) { foreach ( $ nodes as $ node ) { $ ability -> removeResource ( $ node ) ; } $ this -> om -> persist ( $ ability ) ; $ this -> om -> flush ( ) ; }
Dissociates an ability from several resource nodes.

@param Ability $ability
@param array   $nodes

@return string
Dissociates an ability from several resource nodes .