Browse Source

Fix CollectionType form inheritance

Thomas Rabaix 13 năm trước cách đây
mục cha
commit
7499bfd217
1 tập tin đã thay đổi với 8 bổ sung0 xóa
  1. 8 0
      Form/Type/CollectionType.php

+ 8 - 0
Form/Type/CollectionType.php

@@ -36,6 +36,14 @@ class CollectionType extends AbstractType
         $builder->addEventSubscriber($listener);
     }
 
+    /**
+     * {@inheritDoc}
+     */
+    public function getParent()
+    {
+        return 'field';
+    }
+
     /**
      * {@inheritDoc}
      */