public function setLimit(QueryBuilder $qb)
    {
        if (isset($this->offset) && $this->amount != '-1') {
            $qb->setFirstResult($this->offset)->setMaxResults($this->amount);
        }
    }