소스 검색

[Form] tweaked an error message

Fabien Potencier 14 년 전
부모
커밋
d9500418cd
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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('The data class must be set to automatically create children');
+                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));
             }
 
             $builder = $this->getFormFactory()->createBuilderForProperty(