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

[6.x] Fix firstWhere behavior for relations #32525

Merged
merged 1 commit into from
Apr 24, 2020
Merged

Conversation

driesvints
Copy link
Member

This PR fixes the firstWhere behavior for BelongsToMany relations and HasManyThrough. Previous behavior caused attributes from the pivot table to also be placed on the retrieved model and subsequently overwrite attributes.

Fixes #32464

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.

firstWhere merges pivot attributes with model on belongsToMany relation
2 participants