Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[12.x] Fix the getCurrentlyAttachedPivots wrong morphClass for morph to many relationships #55721

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
merged 2 commits into from
May 13, 2025

Conversation

amir9480
Copy link
Contributor

Fixes #55698

@amir9480 amir9480 changed the title [12.x] Fix the getCurrentlyAttachedPivots wrong morph class for morph to many relationships [12.x] Fix the getCurrentlyAttachedPivots wrong morphClass for morph to many relationships May 12, 2025
src/Illuminate/Database/Eloquent/Relations/MorphToMany.php Outdated Show resolved Hide resolved
@amir9480
Copy link
Contributor Author

@shaedrich Thanks, I'm not sure how to document generic type in the InteractsWithPivotTable.php, feel free to send as a new PR

@taylorotwell taylorotwell merged commit ea78060 into laravel:12.x May 13, 2025
58 checks passed
@amir9480 amir9480 deleted the fix_55698 branch May 18, 2025 17:06
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.

morphClass property not set on custom MorphPivot classes
3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.