Forráskód Böngészése

Fix CollectionType form inheritance

Thomas Rabaix 13 éve
szülő
commit
7499bfd217
1 módosított fájl, 8 hozzáadás és 0 törlés
  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}
      */