[v5] is this bug in before fetch paginate? #1994
sasha172017
started this conversation in
General
Replies: 1 comment
-
Saw this issue too when using the beforeFetch hook. Also, it seems to add the query here before all the other queries. So if you have an orWhere clause this hook doesn't work. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
if i write
@beforeFetch()
static get(query) {
query
.orWhereHas('translations', query => {
query.where('name', 'ILiKE', '%%')
})
.orWhereHas('translations', query => {
query.where('description', 'ILiKE', '%%')
})
}
in paginate total count will be without whereHas.... what will do it?
Beta Was this translation helpful? Give feedback.
All reactions