$query->
setParameter(':ids',
$ids, Connection::PARAM_INT_ARRAY
);
return $query->
getQuery()->
getArrayResult();
} /**
* @return array{success: true, data: array<array<string, mixed>>, total: int}
*/
private function loadFromRepository(): array
{ $request =
$this->
Request();
$criteria =
new SearchCriteria(Customer::
class);
$criteria->offset =
(int) $request->
getParam('start', 0
);
$criteria->limit =
(int) $request->
getParam('limit', 30
);
$criteria->term =
$request->
getParam('query', null
);
$criteria->sortings =
$request->
getParam('sort',
[]);
$criteria->conditions =
$request->
getParam('filter',
[]);
foreach ($criteria->sortings
as &
$sorting) { switch ($sorting['property'
]) { case 'customerGroup':
$sorting['property'
] = 'customerGroupId';
break;