Skip to content

Fix global scope query mutations#806

Merged
stevebauman merged 3 commits into
masterfrom
bug-802
May 28, 2026
Merged

Fix global scope query mutations#806
stevebauman merged 3 commits into
masterfrom
bug-802

Conversation

@stevebauman

Copy link
Copy Markdown
Member

Closes #802

This PR updates global scope application to more closely match Eloquent by applying scopes to a cloned builder, allowing scope mutations like in() / setDn() to affect the scoped query.

This also preserves scope filter composition so developer orWhere() clauses cannot negate global scopes, and adds regression coverage for InConfigurationContext and complex scope filtering.

@stevebauman stevebauman merged commit 75f25c8 into master May 28, 2026
31 checks passed
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.

[Bug] Non-filter scope mutations aren't applied

1 participant