Skip to content

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

Closed
@marhub

Description

@marhub

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions