Thomas Rabaix 14 лет назад
Родитель
Сommit
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);
         }