-
-
Notifications
You must be signed in to change notification settings - Fork 270
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
Selectable-Adapter->count() ignores Criteria #227
Comments
Ping @bakura10 |
@Blaimi now that I think of it, it's: $criteria = clone $this->criteria;
$criteria->setFirstResult(null);
$criteria->setMaxResults(null);
return $this->selectable->matching($this->criteria)->count(); |
If I’m using it with paginator, I’m getting the wrong amount of total Items
|
@Blaimi yes, was aware of that - any suggestions on the snippet I pasted? |
Ah, sorry, I found the bug in my patch (and in my brain :D ).
|
@Blaimi any chance to make a PR with a test? |
I’ll try it tonight. I’m not yet that firm with the git-hub-handling. |
@Blaimi ok. Otherwise ping me and I'll do it |
News on this one? |
@Ocramius sorry, I can’t find any time atm. Can you make the PR? there’s another error on the return line
|
Can do |
…apter-count Adding test that verifies #227 - criteria is ignored in `count`
The text was updated successfully, but these errors were encountered: