You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This happens if second parameter is not passed to $this->container->get('form.factory')->create().
I tried to create a test case for it in Symfony\Component\Form\Tests\FormFactoryTest, but I get Symfony\Component\Form\Exception\FormException: Could not load type "text". Looks like there is no such type of tests, so probably some setup need to be done first.
I think this is critical bug in forms, and it exists for a while now.
The text was updated successfully, but these errors were encountered:
Currently, you can pass data_class option in the third argument of create() method of the factory instead of set this in getDefaultOptions() of your form type.
This happens if second parameter is not passed to
$this->container->get('form.factory')->create()
.I tried to create a test case for it in
Symfony\Component\Form\Tests\FormFactoryTest
, but I getSymfony\Component\Form\Exception\FormException: Could not load type "text"
. Looks like there is no such type of tests, so probably some setup need to be done first.I think this is critical bug in forms, and it exists for a while now.
The text was updated successfully, but these errors were encountered: