瀏覽代碼

Fix nested admin

Thomas Rabaix 14 年之前
父節點
當前提交
728907beac
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      Admin/Admin.php

+ 3 - 0
Admin/Admin.php

@@ -611,6 +611,9 @@ abstract class Admin implements AdminInterface, DomainObjectInterface
             $parent = $this->getParent()->getObject($this->request->get($this->getParent()->getIdParameter()));
 
             $propertyPath = new \Symfony\Component\Form\Util\PropertyPath($this->getParentAssociationMapping());
+            
+            $object = $this->getSubject();
+
             $propertyPath->setValue($object, $parent);
         }