Skip to content

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

Merged
taylorotwell merged 3 commits into
laravel:8.xfrom
LanceFryar:8.x
Jun 24, 2022
Merged

[8.x] Fixed bug on forceCreate on a MorphMay relationship not including morph type#42929
taylorotwell merged 3 commits into
laravel:8.xfrom
LanceFryar:8.x

Conversation

@LanceFryar

Copy link
Copy Markdown

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