8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5478a9d commit c6bb561Copy full SHA for c6bb561
UPGRADE-3.0.md
@@ -511,6 +511,24 @@ UPGRADE FROM 2.x to 3.0
511
}
512
513
```
514
+
515
+ If you're using `PUT` requests you need to pass the request method to the form:
516
517
+ Before:
518
519
+ ```php
520
+ $form = $this->createForm(FormType::class, $entity);
521
+ $form->submit($request);
522
+ ```
523
524
+ After:
525
526
527
+ $form = $this->createForm(FormType::class, $entity, [
528
+ 'method' => $request->getMethod(),
529
+ ]);
530
+ $form->handleRequest($request);
531
532
533
* The events `PRE_BIND`, `BIND` and `POST_BIND` were renamed to `PRE_SUBMIT`, `SUBMIT`
534
and `POST_SUBMIT`.
0 commit comments