-
-
Notifications
You must be signed in to change notification settings - Fork 859
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
When having withCount & where at the same time - the results are not paginated, search and ordering don't work #1471
Comments
same issue, if i write this in my model it's working OK: But if i will add where condition - no paginate and sorting and search: |
This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This issue was closed because it has been inactive for 7 days since being marked as stale. |
Summary of problem or feature request
When having
withCount
&where
at the same time - the results are not paginated, search and ordering don't work.Code snippet of problem
When I use
withCount
&where
at the same time - the results are not paginated (DataTable showsShowing 0 to 0 of 0 entries
), search and ordering don't work:When I remove
where
and leavewithCount
:... everything works OK. Also, when I remove
withCount
and leavewhere
:... everything works OK. Do you know why is this happening and how can I fix this?
If it can help, here are queries for the case where
withCount
andwhere
are used at the same time:System details
The text was updated successfully, but these errors were encountered: