8000 [12.x] Only pass model IDs to Eloquent `whereAttachedTo` method by ashleyshenton · Pull Request #55666 · laravel/framework · GitHub
[go: up one dir, main page]

Skip to content

[12.x] Only pass model IDs to Eloquent whereAttachedTo method #55666

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

Merged

Conversation

ashleyshenton
Copy link
Contributor

Fixes #55665

I raised an issue for this beforehand to showcase the problem. This PR adds tests that fail without the provided fix.

Before:
before

After:
after

@taylorotwell taylorotwell merged commit 30d92c9 into laravel:12.x May 7, 2025
60 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.

Eloquent whereAttachedTo incorrectly querying non-ID columns from the model
2 participants
0