Newscoop\Entity\Repository\SectionRepository::getSectionsCountForPublication PHP Method

getSectionsCountForPublication() public method

public getSectionsCountForPublication ( $publicationId )
    public function getSectionsCountForPublication($publicationId)
    {
        $sectionsCount = $this->createQueryBuilder('s')->select('COUNT(s.id)')->andWhere('s.publication = :publicationId')->setParameter('publicationId', $publicationId)->getQuery();
        return $sectionsCount;
    }