Przeglądaj źródła

[Form] tweaked an error message

Fabien Potencier 14 lat temu
rodzic
commit
a6a3789a54
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/Symfony/Component/Form/FormBuilder.php

+ 1 - 1
src/Symfony/Component/Form/FormBuilder.php

@@ -568,7 +568,7 @@ class FormBuilder
             );
         } else {
             if (!$this->dataClass) {
-                throw new FormException(sprintf('The "%s" form children type cannot be guessed as the data class is not set. Provide the type manually (\'text\', \'password\', ...) or set the data class.', $name));
+                throw new FormException(sprintf('The "%s" type cannot be guessed as the data class is not set. Provide the type manually (\'text\', \'password\', ...) or set the data class.', $name));
             }
 
             $builder = $this->getFormFactory()->createBuilderForProperty(