|
@@ -86,15 +86,16 @@ abstract class RESTController extends VoryxController
|
|
$criteria->andWhere($criteria->expr()->contains("$field", "$value"));
|
|
$criteria->andWhere($criteria->expr()->contains("$field", "$value"));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ if (!is_null($paramFetcher->get('limit'))) {
|
|
|
|
+ $criteria->setMaxResults($paramFetcher->get('limit'));
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
if (!is_null($paramFetcher->get('offset'))) {
|
|
if (!is_null($paramFetcher->get('offset'))) {
|
|
$criteria->setFirstResult($paramFetcher->get('offset'));
|
|
$criteria->setFirstResult($paramFetcher->get('offset'));
|
|
}
|
|
}
|
|
|
|
|
|
- if (!is_null($paramFetcher->get('limit'))) {
|
|
|
|
- $criteria->setMaxResults($paramFetcher->get('limit'));
|
|
|
|
- }
|
|
|
|
|
|
|
|
if ($paramFetcher->get('order_by')) {
|
|
if ($paramFetcher->get('order_by')) {
|
|
$order_by = $paramFetcher->get('order_by');
|
|
$order_by = $paramFetcher->get('order_by');
|