$repository = new \Model\ApiRequestRepository($mandango);
$query = $repository->createQuery();
$paginator = new \Helper\Paginator();
$paginator->setPage(isset($page) ? $page : 0);
$paginator->setTotal($query->count());
$query->skip($paginator->getPage() * \Helper\Paginator::itemsPerPage);
$query->limit(\Helper\Paginator::itemsPerPage);
$query->sort([
'time' => -1
]);
$data = $query->all();