Browse Source

Fix regression added by e88821ce5af87867b315c6970cfa8279aca20ec9

Thomas Rabaix 13 years ago
parent
commit
087e123ffa
3 changed files with 27 additions and 0 deletions
  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;
         return $options;
     }
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
+    public function getParent(array $options)
+    {
+        return 'choice';
+    }
+
     /**
     /**
      * {@inheritDoc}
      * {@inheritDoc}
      */
      */

+ 8 - 0
Form/Type/EqualType.php

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

+ 11 - 0
Form/Type/TranslatableChoiceType.php

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