Description
Hi guys, I'm using the standalone Form + Validator components. In my ValidatorBuilder, my setup is set to use the latest validator API (setApiVersion(Validation::API_VERSION_2_5)). And my Form integrates the Validator using the Form\Extension\Validator\ValidatorExtension classe.
Now, Imagine that you have a form builder that adds an entry with no type ($builder->add('test'))
When creating the form, and error is raised saying :
Symfony\Component\Validator\Validator\RecursiveValidator::getMetadataFactory() in Symfony\Component\Form\Extension\Validator\ValidatorExtension.php on line 62
in the ValidatorExtension classe, the loadTypeGuesser
method calls the $this->validator->getMetadataFactory()
which is not define in the RecursiveValidator class.
Is this really a Bug, or should I always put a type when adding an entry to the form builder ?
Thanks!