diff --git a/src/Form.php b/src/Form.php
index <HASH>..<HASH> 100644
--- a/src/Form.php
+++ b/src/Form.php
@@ -751,7 +751,9 @@ class Form implements Renderable
                     // if related is empty
                     if (is_null($related)) {
                         $related = $relation->getRelated();
-                        $related->{$relation->getForeignKeyName()} = $this->model->{$this->model->getKeyName()};
+                        $qualifiedParentKeyName = $relation->getQualifiedParentKeyName();
+                        $localKey = array_last(explode('.', $qualifiedParentKeyName));
+                        $related->{$relation->getForeignKeyName()} = $this->model->{$localKey};
                     }
 
                     foreach ($prepared[$name] as $column => $value) {
[fix]#<I> hasOne relation should use localKey