We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c7fae8 commit cdfd2afCopy full SHA for cdfd2af
src/Database/Eloquent/FMModel.php
@@ -130,11 +130,9 @@ public static function createFromRecord($record)
130
})->toArray();
131
}
132
133
- // fill in the field data we've mapped and retrieved
134
- $instance->forceFill($fieldData);
135
-
136
- // fill in the portal data we've mapped and retrieved
137
- $instance->forceFill($portalData);
+ // fill in the field data and portal data we've mapped and retrieved
+ $combinedAttributes = [...$fieldData, ...$portalData];
+ $instance->setRawAttributes($combinedAttributes, true);
138
139
$recordId = $record['recordId'];
140
$modId = $record['modId'];
0 commit comments