Skip to content

Commit 03c73e9

Browse files
peterrehmweaverryan
authored andcommitted
Added hint about modifying an unmapped form field
1 parent 8a8682f commit 03c73e9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

book/forms.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -897,6 +897,10 @@ the choice is ultimately up to you.
897897
The field data can be accessed in a controller with::
898898

899899
$form->get('dueDate')->getData();
900+
901+
In addition the data of a unmapped field can also directly be modified ::
902+
903+
$form->get('dueDate')->setData('dueDate');
900904

901905
Defining your Forms as Services
902906
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)