-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
3.0 ORM Using count before all #6009
Comments
@markstory it must be the new autoFields thing |
It very well could be. @Laykou count() recently changed so that in unbinds all the fields from a query to avoid loading additional fields that are not needed for the count. However, that change was done to a 'clean' copy. Perhaps the copy is still sharing an eagerloader instance. |
I solved this in #6013 |
@Laykou
|
Great, thanks @mdlouhy for the fix, I see what was the problem.
Closing this as the #6013 is open. @mdlouhy please add tests. |
Just for the record the issue was solved in #6019 |
Using
count()
beforeall()
or any iterator doesn't bind associations:Was there recently any change in the
count()
method? The pagination triggersall()
beforecount()
therefore it works properly.The text was updated successfully, but these errors were encountered: