src/Kunstmaan/AdminBundle/Repository/AclChangesetRepository.php
public function hasPendingChangesets()
    {
        $qb = $this->createQueryBuilder('ac')
            ->select('count(ac)')
            ->where('ac.status = :status')
            ->setParameter('status', AclChangeset::STATUS_NEW);

        return $qb->getQuery()->getSingleScalarResult() != 0;
    }
public function hasPendingChangesets()
    {
        $qb = $this->createQueryBuilder('ac')
            ->select('count(ac)')
            ->where('ac.status = :status')
            ->setParameter('status', AclChangeset::STATUS_NEW);

        return $qb->getQuery()->getSingleScalarResult() != 0;
    }
public function hasPendingChangesets ( ) { $ qb = $ this -> createQueryBuilder ( 'ac' ) -> select ( 'count(ac)' ) -> where ( 'ac.status = :status' ) -> setParameter ( 'status' , AclChangeset :: STATUS_NEW ) ; return $ qb -> getQuery ( ) -> getSingleScalarResult ( ) != 0 ; }
Check if there are pending changesets

@return bool
Check if there are pending changesets