This commit is contained in:
Yuri Kuznetsov
2022-10-16 14:25:46 +03:00
parent 7be573be67
commit befdff8085
@@ -704,7 +704,7 @@ class Service
$totalCount = -2;
if ($scope !== 'User') {
if ($scope !== User::ENTITY_TYPE) {
$countQuery = $this->entityManager->getQueryBuilder()
->select()
->fromQuery($builder->build(), 'c')
@@ -720,7 +720,7 @@ class Service
$builder->order('dateStart', 'DESC');
if ($scope === 'User') {
if ($scope === User::ENTITY_TYPE) {
$maxSizeQ++;
} else {
$builder->order('createdAt', 'DESC');