Skip to content

[13.x] Fix scope removal in nested where conditions#54816

Merged
taylorotwell merged 3 commits intolaravel:masterfrom
willrowe:hotfix/nested-scope-removal
Feb 27, 2025
Merged

[13.x] Fix scope removal in nested where conditions#54816
taylorotwell merged 3 commits intolaravel:masterfrom
willrowe:hotfix/nested-scope-removal

Conversation

@willrowe
Copy link
Contributor

If you remove a scope in a nested where condition, it is never copied over from the nested query builder and applied to the root query builder. This would happen when calling a scope like onlyTrashed, which removes the global soft deletes scope, in a nested where.

This could possibly be a breaking change since scopes that were previously not removed would start being removed.

@crynobone crynobone changed the title Fix scope removal in nested where conditions [13.x] Fix scope removal in nested where conditions Feb 27, 2025
@taylorotwell taylorotwell merged commit 4ca4a16 into laravel:master Feb 27, 2025
35 checks passed
@willrowe willrowe deleted the hotfix/nested-scope-removal branch March 2, 2025 17:09
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.

2 participants