Browse Source

Fix regression introduce by e88821ce5af87867b315c6970cfa8279aca20ec9

Thomas Rabaix 13 years ago
parent
commit
7a65d9f4dd
3 changed files with 27 additions and 3 deletions
  1. 9 1
      Form/Type/BooleanType.php
  2. 9 1
      Form/Type/EqualType.php
  3. 9 1
      Form/Type/TranslatableChoiceType.php

+ 9 - 1
Form/Type/BooleanType.php

@@ -47,6 +47,14 @@ class BooleanType extends FormChoiceType
         ));
         ));
     }
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
+    public function getParent()
+    {
+        return 'choice';
+    }
+
     /**
     /**
      * {@inheritDoc}
      * {@inheritDoc}
      */
      */
@@ -54,4 +62,4 @@ class BooleanType extends FormChoiceType
     {
     {
         return 'sonata_type_boolean';
         return 'sonata_type_boolean';
     }
     }
-}
+}

+ 9 - 1
Form/Type/EqualType.php

@@ -47,6 +47,14 @@ class EqualType extends FormChoiceType
         ));
         ));
     }
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
+    public function getParent()
+    {
+        return 'choice';
+    }
+
     /**
     /**
      * {@inheritDoc}
      * {@inheritDoc}
      */
      */
@@ -54,4 +62,4 @@ class EqualType extends FormChoiceType
     {
     {
         return 'sonata_type_equal';
         return 'sonata_type_equal';
     }
     }
-}
+}

+ 9 - 1
Form/Type/TranslatableChoiceType.php

@@ -67,7 +67,7 @@ class TranslatableChoiceType extends ChoiceType
     /**
     /**
      * {@inheritDoc}
      * {@inheritDoc}
      */
      */
-    public function buildForm(FormBuilderInterface $builder, array $options)
+    public function buildForm(FormBuilder $builder, array $options)
     {
     {
         // translate options before building form
         // translate options before building form
         foreach ($options['choices'] as $name => $value) {
         foreach ($options['choices'] as $name => $value) {
@@ -82,6 +82,14 @@ class TranslatableChoiceType extends ChoiceType
         parent::buildForm($builder, $options);
         parent::buildForm($builder, $options);
     }
     }
 
 
+    /**
+     * {@inheritDoc}
+     */
+    public function getParent()
+    {
+        return 'choice';
+    }
+
     /**
     /**
      * {@inheritDoc}
      * {@inheritDoc}
      */
      */