Pārlūkot izejas kodu

Added getName() for form types where they were missing

Artem Lopata (bumz) 13 gadi atpakaļ
vecāks
revīzija
e88821ce5a

+ 8 - 0
Form/Type/BooleanType.php

@@ -44,4 +44,12 @@ class BooleanType extends FormChoiceType
 
         return $options;
     }
+
+    /**
+     * {@inheritDoc}
+     */
+    public function getName()
+    {
+        return 'sonata_type_boolean';
+    }
 }

+ 8 - 0
Form/Type/EqualType.php

@@ -44,4 +44,12 @@ class EqualType extends FormChoiceType
 
         return $options;
     }
+
+    /**
+     * {@inheritDoc}
+     */
+    public function getName()
+    {
+        return 'sonata_type_equal';
+    }
 }

+ 8 - 0
Form/Type/TranslatableChoiceType.php

@@ -67,4 +67,12 @@ class TranslatableChoiceType extends ChoiceType
 
         parent::buildForm($builder, $options);
     }
+
+    /**
+     * {@inheritDoc}
+     */
+    public function getName()
+    {
+        return 'sonata_type_translatable_choice';
+    }
 }