You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This discussion was converted from issue #793 on July 29, 2022 14:44.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have something like:
QueryBuilder::for(Object::class) ->whereHas('comments')->orWhereHas('relation.comments')->orWhereHas('relation.relationChild.comments') ->allowedFilters($this->setAllowedFilter($this->filters)) ->allowedSorts($this->setAllowedSorts($this->filters)) ->paginate(data_get($options, 'pagination.rowsPerPage'), ['*'], 'page', data_get($options, 'pagination.page'));
when adding the
->orWhereHas('relation.comments')->orWhereHas('relation.relationChild.comments')
the filters don't work anymore, because the package uses whereHas.
Any solutions to make it so I can use
orWhereHas
and filter at the same time?Beta Was this translation helpful? Give feedback.
All reactions