module/FzyCommon/src/FzyCommon/Service/Search/Base/DQL.php
protected function getQBResult(Params $params, Query $query)
    {
        $paginated = new Paginator($query);
        $paginated->setUseOutputWalkers(false);
        $this->setTotal($paginated->count());

        return $paginated;
    }
protected function getQBResult(Params $params, Query $query)
    {
        $paginated = new Paginator($query);
        $paginated->setUseOutputWalkers(false);
        $this->setTotal($paginated->count());

        return $paginated;
    }
Returns an array or other iterable object containing results
@param  Param           $params
@param  Query           $query
@return Paginator|array