module/FzyCommon/src/FzyCommon/Service/Search/Base/DQL.php
protected function getCustomizedQueryBuilder(Params $params)
    {
        $qb = $this->em()->createQueryBuilder();

        $this->setupQueryBuilder($params, $qb);

        $this->addFilters($params, $qb); // add filters to the query
        $this->addOrdering($params, $qb); // add ordering constraints
        $this->addOffset($params, $qb); // add offset constraints
        $this->addLimit($params, $qb); // add limit constraint

        return $qb;
    }
protected function getCustomizedQueryBuilder(Params $params)
    {
        $qb = $this->em()->createQueryBuilder();

        $this->setupQueryBuilder($params, $qb);

        $this->addFilters($params, $qb); // add filters to the query
        $this->addOrdering($params, $qb); // add ordering constraints
        $this->addOffset($params, $qb); // add offset constraints
        $this->addLimit($params, $qb); // add limit constraint

        return $qb;
    }
@param Params $params

@return QueryBuilder