Skip to content

feat(database): add support for whereHas inside where groups#2121

Draft
laylatichy wants to merge 2 commits intotempestphp:3.xfrom
laylatichy:feat-add-where-has-to-where-group-builder
Draft

feat(database): add support for whereHas inside where groups#2121
laylatichy wants to merge 2 commits intotempestphp:3.xfrom
laylatichy:feat-add-where-has-to-where-group-builder

Conversation

@laylatichy
Copy link
Copy Markdown
Contributor

No description provided.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 17, 2026

Benchmark Results

Comparison of feat-add-where-has-to-where-group-builder against 3.x (9d11469f3c62f2922865eb2a80f7109cf15eee9a).

Open to see the benchmark results

No benchmark changes above ±5%.

Generated by phpbench against commit f0383cd

@laylatichy laylatichy force-pushed the feat-add-where-has-to-where-group-builder branch 2 times, most recently from d14c7ab to cf9aef4 Compare April 17, 2026 19:45
@innocenzi innocenzi changed the title feat(database): add support for where has inside where group feat(database): add support for whereHas inside where groups Apr 17, 2026
…ilder

Enables grouping EXISTS conditions with OR inside parenthesized where
groups, e.g. ->whereGroup(fn ($g) =>
$g->whereHas('a')->orWhereHas('b'))
@laylatichy laylatichy force-pushed the feat-add-where-has-to-where-group-builder branch from cf9aef4 to f0383cd Compare April 18, 2026 02:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant