[Form] tweaked an error message

This commit is contained in:
Fabien Potencier 2011-06-09 11:32:20 +02:00
parent 6e96accf3a
commit d9500418cd

View File

@ -568,7 +568,7 @@ class FormBuilder
); );
} else { } else {
if (!$this->dataClass) { 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( $builder = $this->getFormFactory()->createBuilderForProperty(