/**
* returns a JSON string to the view the customers for the customer group mapping
*/
public function getCustomerGroupsAction() { $usedIds =
$this->
Request()->usedIds;
$offset =
(int) $this->
Request()->
getParam('start'
);
$limit =
(int) $this->
Request()->
getParam('limit', 20
);
$customerRepository =
$this->
getCustomerRepository();
$dataQuery =
$customerRepository->
getCustomerGroupsWithoutIdsQuery($usedIds,
$offset,
$limit);
$total =
$this->em->
getQueryCount($dataQuery);
$data =
$dataQuery->
getArrayResult();
// Return the data and total count
$this->
View()->
assign(['success' => true, 'data' =>
$data, 'total' =>
$total]);
} /**
* moves a category by the categoryId under a new parent node
*/