浏览代码

Fix regression added by e88821ce5af87867b315c6970cfa8279aca20ec9

Thomas Rabaix 13 年之前
父节点
当前提交
087e123ffa
共有 3 个文件被更改,包括 27 次插入0 次删除
  1. 8 0
      Form/Type/BooleanType.php
  2. 8 0
      Form/Type/EqualType.php
  3. 11 0
      Form/Type/TranslatableChoiceType.php

+ 8 - 0
Form/Type/BooleanType.php

@@ -45,6 +45,14 @@ class BooleanType extends FormChoiceType
         return $options;
     }
 
+    /**
+     * {@inheritDoc}
+     */
+    public function getParent(array $options)
+    {
+        return 'choice';
+    }
+
     /**
      * {@inheritDoc}
      */

+ 8 - 0
Form/Type/EqualType.php

@@ -45,6 +45,14 @@ class EqualType extends FormChoiceType
         return $options;
     }
 
+    /**
+     * {@inheritDoc}
+     */
+    public function getParent(array $options)
+    {
+        return 'choice';
+    }
+
     /**
      * {@inheritDoc}
      */

+ 11 - 0
Form/Type/TranslatableChoiceType.php

@@ -53,6 +53,9 @@ class TranslatableChoiceType extends ChoiceType
         );
     }
 
+    /**
+     * {@inheritDoc}
+     */
     public function buildForm(FormBuilder $builder, array $options)
     {
         // translate options before building form
@@ -68,6 +71,14 @@ class TranslatableChoiceType extends ChoiceType
         parent::buildForm($builder, $options);
     }
 
+    /**
+     * {@inheritDoc}
+     */
+    public function getParent(array $options)
+    {
+        return 'choice';
+    }
+
     /**
      * {@inheritDoc}
      */