protected function countTotalRows()
    {
        $source = $this->getSource();
        /** @var \Doctrine\ORM\Query\Expr\Select $select */
        $source->resetDQLPart('select')->setFirstResult(0)->select('count(' . $this->entityAlias . ')');
        return (int)$source->getQuery()->getSingleScalarResult();
    }
protected function countTotalRows()
    {
        $source = $this->getSource();
        /** @var \Doctrine\ORM\Query\Expr\Select $select */
        $source->resetDQLPart('select')->setFirstResult(0)->select('count(' . $this->entityAlias . ')');
        return (int)$source->getQuery()->getSingleScalarResult();
    }
protected function countTotalRows ( ) { $ source = $ this -> getSource ( ) ; /** @var \Doctrine\ORM\Query\Expr\Select $select */ $ source -> resetDQLPart ( 'select' ) -> setFirstResult ( 0 ) -> select ( 'count(' . $ this -> entityAlias . ')' ) ; return ( int ) $ source -> getQuery ( ) -> getSingleScalarResult ( ) ; }
Get total rows in result ignoring limit

@return int
Get total rows in result ignoring limit