plugin/competency/Repository/CompetencyAbilityRepository.php
public function countByCompetency(Competency $competency)
    {
        return $this->createQueryBuilder('ca')
            ->select('COUNT(ca)')
            ->where('ca.competency = :competency')
            ->setParameter(':competency', $competency)
            ->getQuery()
            ->getSingleScalarResult();
    }
public function countByCompetency(Competency $competency)
    {
        return $this->createQueryBuilder('ca')
            ->select('COUNT(ca)')
            ->where('ca.competency = :competency')
            ->setParameter(':competency', $competency)
            ->getQuery()
            ->getSingleScalarResult();
    }
public function countByCompetency ( Competency $ competency ) { return $ this -> createQueryBuilder ( 'ca' ) -> select ( 'COUNT(ca)' ) -> where ( 'ca.competency = :competency' ) -> setParameter ( ':competency' , $ competency ) -> getQuery ( ) -> getSingleScalarResult ( ) ; }
Returns the number of abilities associated with a given competency.

@param Competency $competency

@return mixed
Returns the number of abilities associated with a given competency .