public function findByRequestParams(Request\Params $params)
    {       
        if (empty($params->pagination) &&
            isset($params->resourceConfig) && 
            isset($params->resourceConfig->defaults) &&
            isset($params->resourceConfig->defaults->pagination) &&
            !$params->resourceConfig->defaults->pagination
            ) {
            return $this->findAll(
                $params->primaryClass,
                $params->filters,
                $params->sorting,
                $params->translatable
            );
        } else {
            return $this->findPaginated(
                $params->primaryClass,
                $params->filters,
                $params->sorting,
                $params->getPageOffset(),
                $params->getPageSize(),
                $params->translatable
            );
        }
    }
public function findByRequestParams(Request\Params $params)
    {       
        if (empty($params->pagination) &&
            isset($params->resourceConfig) && 
            isset($params->resourceConfig->defaults) &&
            isset($params->resourceConfig->defaults->pagination) &&
            !$params->resourceConfig->defaults->pagination
            ) {
            return $this->findAll(
                $params->primaryClass,
                $params->filters,
                $params->sorting,
                $params->translatable
            );
        } else {
            return $this->findPaginated(
                $params->primaryClass,
                $params->filters,
                $params->sorting,
                $params->getPageOffset(),
                $params->getPageSize(),
                $params->translatable
            );
        }
    }
public function findByRequestParams ( Request \ Params $ params ) { if ( empty ( $ params -> pagination ) && isset ( $ params -> resourceConfig ) && isset ( $ params -> resourceConfig -> defaults ) && isset ( $ params -> resourceConfig -> defaults -> pagination ) && ! $ params -> resourceConfig -> defaults -> pagination ) { return $ this -> findAll ( $ params -> primaryClass , $ params -> filters , $ params -> sorting , $ params -> translatable ) ; } else { return $ this -> findPaginated ( $ params -> primaryClass , $ params -> filters , $ params -> sorting , $ params -> getPageOffset ( ) , $ params -> getPageSize ( ) , $ params -> translatable ) ; } }
Helper method to paginate a query using the HATEOAS request parameters.
@param Request\Params $request
@return ArrayCollection|PaginatedCollection
Helper method to paginate a query using the HATEOAS request parameters .