Skip to content

Commit 3a0df2b

Browse files
committed
replace get() with all() method to support non-scalar types
1 parent 96552a3 commit 3a0df2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

form/direct_submit.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ control over when exactly your form is submitted and what data is passed to it::
1717
$form = $this->createForm(TaskType::class, $task);
1818

1919
if ($request->isMethod('POST')) {
20-
$form->submit($request->request->get($form->getName()));
20+
$form->submit($request->request->all($form->getName()));
2121

2222
if ($form->isSubmitted() && $form->isValid()) {
2323
// perform some action...

0 commit comments

Comments
 (0)