src/CRUDlex/MySQLData.php
protected function addPagination(QueryBuilder $queryBuilder, $skip, $amount)
    {
        $queryBuilder->setMaxResults(9999999999);
        if ($amount !== null) {
            $queryBuilder->setMaxResults(abs(intval($amount)));
        }
        if ($skip !== null) {
            $queryBuilder->setFirstResult(abs(intval($skip)));
        }
    }
protected function addPagination(QueryBuilder $queryBuilder, $skip, $amount)
    {
        $queryBuilder->setMaxResults(9999999999);
        if ($amount !== null) {
            $queryBuilder->setMaxResults(abs(intval($amount)));
        }
        if ($skip !== null) {
            $queryBuilder->setFirstResult(abs(intval($skip)));
        }
    }
protected function addPagination ( QueryBuilder $ queryBuilder , $ skip , $ amount ) { $ queryBuilder -> setMaxResults ( 9999999999 ) ; if ( $ amount !== null ) { $ queryBuilder -> setMaxResults ( abs ( intval ( $ amount ) ) ) ; } if ( $ skip !== null ) { $ queryBuilder -> setFirstResult ( abs ( intval ( $ skip ) ) ) ; } }
Adds pagination parameters to the query.

@param QueryBuilder $queryBuilder
the query
@param integer|null $skip
the rows to skip
@param integer|null $amount
the maximum amount of rows
Adds pagination parameters to the query .