Added morphTo to list of singular relations (#3809)

Credit to @SeriousKen. Fixes #3807
This commit is contained in:
SeriousKen 2018-12-06 16:43:50 +00:00 committed by Luke Towers
parent 4438ddc47e
commit 9d8416e178
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ trait FormModelSaver
}
$attributesToPurge = [];
$singularTypes = ['belongsTo', 'hasOne', 'morphOne'];
$singularTypes = ['belongsTo', 'hasOne', 'morphTo', 'morphOne'];
foreach ($saveData as $attribute => $value) {
$isNested = $attribute == 'pivot' || (