diff --git a/src/Manipulate/Operations/ManipulationHandler.php b/src/Manipulate/Operations/ManipulationHandler.php index 82ffe13..316d25e 100644 --- a/src/Manipulate/Operations/ManipulationHandler.php +++ b/src/Manipulate/Operations/ManipulationHandler.php @@ -111,7 +111,8 @@ public function transferAllRelationFields($fieldSet,$model, $data, $relMeta){ */ foreach ($fieldSet->getRelationFields() as $field){ $relationshipName=$field->getFieldName(); - $this->handleRelationshipLinking($model,$data[$field->getFieldId()],$relationshipName,$relMeta[$relationshipName],$field); + $val=array_key_exists($field->getFieldId(),$data)?$data[$field->getFieldId()]:null; + $this->handleRelationshipLinking($model,$val,$relationshipName,$relMeta[$relationshipName],$field); } }