protected function getLimit(Request $request)
    {
        return min(
            $this->getMaxLimit($request),
            $request->query->get(
                'length',
                $this->getDefaultLimit($request)
            )
        );
    }
protected function getLimit(Request $request)
    {
        return min(
            $this->getMaxLimit($request),
            $request->query->get(
                'length',
                $this->getDefaultLimit($request)
            )
        );
    }
protected function getLimit ( Request $ request ) { return min ( $ this -> getMaxLimit ( $ request ) , $ request -> query -> get ( 'length' , $ this -> getDefaultLimit ( $ request ) ) ) ; }
Defines the limit for the Propel query.

@param Request $request the current request
@return int the propel query limit
Defines the limit for the Propel query .