module/FzyCommon/src/FzyCommon/Service/Search/Base/DQL.php
protected function addLimit(Params $params, QueryBuilder $qb)
    {
        if ($this->getLimit() && $this->getLimit() > 0) {
            $qb->setMaxResults($this->getLimit());
        }

        return $this;
    }
protected function addLimit(Params $params, QueryBuilder $qb)
    {
        if ($this->getLimit() && $this->getLimit() > 0) {
            $qb->setMaxResults($this->getLimit());
        }

        return $this;
    }
Set the limit for the query results
@param  Param        $params
@param  QueryBuilder $qb
@return $this