From e967ed536b5e2fa48283256db618f2d1acf6924b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Votruba?= Date: Sat, 18 Aug 2018 23:51:49 +0200 Subject: [PATCH] action_method is missing $task variable It's not clear from the docs, but user has to first create the `$task` variable. In the second example bellow it's more clear thanks to `// ...`. This makes it a bit more explicit here as well. --- form/action_method.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/form/action_method.rst b/form/action_method.rst index d97b5edd6be..8b46cd1c86e 100644 --- a/form/action_method.rst +++ b/form/action_method.rst @@ -27,6 +27,8 @@ form, you can use ``setAction()`` and ``setMethod()``: { public function new() { + // ... + $form = $this->createFormBuilder($task) ->setAction($this->generateUrl('target_route')) ->setMethod('GET')