瀏覽代碼

Added getName() for form types where they were missing

Artem Lopata (bumz) 13 年之前
父節點
當前提交
e88821ce5a
共有 3 個文件被更改,包括 24 次插入0 次删除
  1. 8 0
      Form/Type/BooleanType.php
  2. 8 0
      Form/Type/EqualType.php
  3. 8 0
      Form/Type/TranslatableChoiceType.php

+ 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';
+    }
 }