private function useCustomPaginator()
    {
        $qb = $this->getQueryBuilder();
        $parts = $qb->getDQLParts();

        if ($parts['having'] !== null || true === $parts['distinct']) {
            // never tried having in such queries...
            return false;
        }

        // @todo maybe more detection needed :-/
        return true;
    }
private function useCustomPaginator()
    {
        $qb = $this->getQueryBuilder();
        $parts = $qb->getDQLParts();

        if ($parts['having'] !== null || true === $parts['distinct']) {
            // never tried having in such queries...
            return false;
        }

        // @todo maybe more detection needed :-/
        return true;
    }
private function useCustomPaginator ( ) { $ qb = $ this -> getQueryBuilder ( ) ; $ parts = $ qb -> getDQLParts ( ) ; if ( $ parts [ 'having' ] !== null || true === $ parts [ 'distinct' ] ) { // never tried having in such queries... return false ; } // @todo maybe more detection needed :-/ return true ; }
Test which pagination solution to use.

@return bool
Test which pagination solution to use .