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

[8.x] Fixed bug on forceCreate on a MorphMay relationship not including morph type #42929

Merged
merged 3 commits into from
Jun 24, 2022

Conversation

LanceFryar
Copy link

Fixes #42796

forceCreate was not including the morph type on the attributes sent to create the related model. The forceCreate method has been overrided to include the morph type on the attributes before passing the call to its parent.

This should solve the #42796 issue.

@taylorotwell taylorotwell merged commit 61f375b into laravel:8.x Jun 24, 2022
@GrahamCampbell GrahamCampbell changed the title Fixed bug on forceCreate on a MorphMay relationship not including morph type [8.x] Fixed bug on forceCreate on a MorphMay relationship not including morph type Jun 25, 2022
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.

3 participants