Skip to content
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

[5.x] Add support for whereHas() and whereRelation() to entry and user query builders #8476

Open
wants to merge 23 commits into
base: 5.x
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
7068857
Support whereHas / whereRelation in Entry and User query builders
ryanmitchell Jul 20, 2023
aef4da1
Better comments
ryanmitchell Jul 20, 2023
eb3c22f
Fix return type
ryanmitchell Jul 20, 2023
cf20ade
Don't need these here anymore
ryanmitchell Jul 20, 2023
3ea9f36
Add some test coverage
ryanmitchell Jul 21, 2023
1913bd3
Support basic relation check when maxItems: 1
ryanmitchell Jul 21, 2023
b8cba41
:beer:
ryanmitchell Jul 21, 2023
e6b82b6
Move count check and rewrite error message
ryanmitchell Jul 21, 2023
86ed319
Merge branch '4.x' into feature/where-has-relationships
ryanmitchell Aug 8, 2023
86c1dcc
Don't need boolean here
ryanmitchell Aug 8, 2023
3986056
Support taxonomies for @robdekort
ryanmitchell Oct 5, 2023
2522fbf
Merge branch '4.x' into feature/where-has-relationships
ryanmitchell Oct 5, 2023
3c94835
Tidy up
ryanmitchell Oct 5, 2023
20bd209
Merge branch '4.x' into feature/where-has-relationships
ryanmitchell Oct 12, 2023
dadcca7
Merge branch '4.x' into feature/where-has-relationships
ryanmitchell Dec 12, 2023
3e81f42
:beer:
ryanmitchell Dec 12, 2023
ce0c244
Merge branch '4.x' into feature/where-has-relationships
ryanmitchell Jan 10, 2024
b63a327
Merge branch '4.x' into feature/where-has-relationships
ryanmitchell Feb 29, 2024
2167bc0
:beer:
ryanmitchell Feb 29, 2024
8ff6044
Merge branch '5.x' into feature/where-has-relationships
ryanmitchell May 10, 2024
0d39b65
ids have changed in tests
ryanmitchell May 10, 2024
4e933e6
Merge branch '5.x' into feature/where-has-relationships
ryanmitchell Jul 23, 2024
0f55edc
:beer:
ryanmitchell Jul 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch '4.x' into feature/where-has-relationships
  • Loading branch information
ryanmitchell committed Aug 8, 2023
commit 86ed319f66a1331f8ba5d57f67db951e319e1041
5 changes: 5 additions & 0 deletions src/Fieldtypes/Entries.php
Original file line number Diff line number Diff line change
Expand Up @@ -361,4 +361,9 @@ public function relationshipQueryBuilder()
return Entry::query()
->when($collections, fn ($query) => $query->whereIn('collection', $collections));
}

public function filter()
{
return new EntriesFilter($this);
}
}
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.