public function create($filterArray,
$operations,
$offset,
$limit,
$queueId) { $entityManager =
$this->
getDqlHelper()->
getEntityManager();
$filterString =
$this->
getFilterResource()->
filterArrayToString($filterArray);
$query =
$this->
getFilterResource()->
getFilterQuery($filterArray,
$offset,
$limit);
list
($results,
$totalCount) =
$this->
getFilterResource()->
getPaginatedResult($query);
if (!
empty($queueId)) { $newBackup = false;
/** @var QueueModel|null $queue */
$queue =
$entityManager->
find(QueueModel::
class,
$queueId);
if (!
$queue) { throw new RuntimeException(sprintf('Queue with ID %s not found',
$queueId));
} }