|
@@ -98,7 +98,7 @@ abstract class RESTController extends VoryxController
|
|
|
$criteria->orderBy($orderBy);
|
|
|
}
|
|
|
|
|
|
- $repo = $em->getRepository($this->repository);
|
|
|
+ $repo = $em->getRepository($this->getRepository());
|
|
|
$entities = $repo->matching($criteria)->toArray();
|
|
|
|
|
|
if($disableTenancy) $tenancyService->enableFilter();
|
|
@@ -115,7 +115,7 @@ abstract class RESTController extends VoryxController
|
|
|
$offset = $paramFetcher->get('offset');
|
|
|
$limit = $paramFetcher->get('limit');
|
|
|
$order_by = $paramFetcher->get('order_by');
|
|
|
- $entities = $em->getRepository($this->repository)->findBy($filters, $order_by, $limit, $offset);
|
|
|
+ $entities = $em->getRepository($this->getRepository())->findBy($filters, $order_by, $limit, $offset);
|
|
|
if($disableTenancy) $tenancyService->enableFilter();
|
|
|
|
|
|
if ($entities) {
|