src/Adapter/PaginationORMAdapter.php
public function getItems($query, $current, $limit)
    {
        $start = $current * $limit - $limit;

        return $query->setFirstResult($start)->setMaxResults($limit)->getQuery()->getResult();
    }
public function getItems($query, $current, $limit)
    {
        $start = $current * $limit - $limit;

        return $query->setFirstResult($start)->setMaxResults($limit)->getQuery()->getResult();
    }
@param QueryBuilder $query
@param int $current
@param int $limit

@return QueryBuilder