We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug This is currently always returning 1 for total items when grouped which also breaks the last page/total page count as well.
To Reproduce Steps to reproduce the behavior: Create a model paginator without passing a group in the parameters and then one with group.
$paginator = new \Phalcon\Paginator\Adapter\Model([ 'model' => Model::class, 'parameters' => [ 'type IN ({type:array})', 'bind' => [ 'type' => [ Model::TYPE_1, Model::TYPE_2, ], ], 'group' => 'type' ] ]);
Since this is grouped by type and 2 types are provided, you'd expect it to return total items as 2 but this will return 1
Details
The text was updated successfully, but these errors were encountered:
Resolved in #16043
Sorry, something went wrong.
No branches or pull requests
Describe the bug
This is currently always returning 1 for total items when grouped which also breaks the last page/total page count as well.
To Reproduce
Steps to reproduce the behavior:
Create a model paginator without passing a group in the parameters and then one with group.
Since this is grouped by type and 2 types are provided, you'd expect it to return total items as 2 but this will return 1
Details
The text was updated successfully, but these errors were encountered: