Skip to content

Commit c0d4b2c

Browse files
committed
Merge branch '5.1'
* 5.1: Update direct_submit.rst
2 parents 5364022 + 3cf1487 commit c0d4b2c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

form/direct_submit.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ control over when exactly your form is submitted and what data is passed to it::
1515

1616
public function new(Request $request)
1717
{
18+
$task = new Task();
1819
$form = $this->createForm(TaskType::class, $task);
1920

2021
if ($request->isMethod('POST')) {

0 commit comments

Comments
 (0)