@@ -131,14 +131,14 @@ |
||
| 131 | 131 | $id = $fields['id']; |
| 132 | 132 | } else { |
| 133 | 133 | $id = ''; |
| 134 | - } |
|
| 134 | + } |
|
| 135 | 135 | |
| 136 | 136 | if (array_except($fields, ['id'])) { |
| 137 | 137 | $record = $relation->updateOrCreate(['id' => $id], $fields); |
| 138 | 138 | array_push($keys, $record->id); |
| 139 | 139 | array_push($records, $record); |
| 140 | - } |
|
| 141 | - } |
|
| 140 | + } |
|
| 141 | + } |
|
| 142 | 142 | |
| 143 | 143 | if ($keys && (property_exists($this, 'pruneHasMany') && $this->pruneHasMany !== false)) { |
| 144 | 144 | $notIn = $relation->getRelated()->whereNotIn('id', $keys)->get(); |