In symfony 2.3 binding a Request
to a form with bind()
is deprecated:
$form->bind($this->getRequest());
Now I tried using the submit()
method instead (as described in the documentation):
$form->submit($request->request->get($form->getName()));
...but it doesn't work.
The form did not change the object that I added to it upon creation.
Passing the Request directly to submit() still works, but is deprecated and will be removed in Symfony 3.0. You should use the method handleRequest() instead.
( documentation )
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With