Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Phalcon\Mvc\Model\Query\Builder limit bug #11298

Closed
marhub opened this issue Jan 12, 2016 · 1 comment
Closed

Phalcon\Mvc\Model\Query\Builder limit bug #11298

marhub opened this issue Jan 12, 2016 · 1 comment

Comments

@marhub
Copy link

marhub commented Jan 12, 2016

There is no way to unset limit.
For example:

$qb = new \Phalcon\Mvc\Model\Query\Builder;
$qb->limit(5);
$qb->limit(null); // expected result is no limit

var_dump($qb->getLimit()); // returns 'int(0)'

I belive it's because of casting limit in method to int.

ifsnow added a commit to ifsnow/cphalcon that referenced this issue Jan 12, 2016
ifsnow added a commit to ifsnow/cphalcon that referenced this issue Jan 13, 2016
sergeyklay added a commit that referenced this issue Jan 13, 2016
@sergeyklay
Copy link
Member

Fixed in 2.0.x branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants