Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fdc6297

Browse files
gzankevichweaverryan
authored andcommitted
Added code snippet demonstrating how to fetch data from a property_path=false form field
1 parent fedc9d4 commit fdc6297

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
@@ -835,6 +835,10 @@ the choice is ultimately up to you.
835835
Additionally, if there are any fields on the form that aren't included in
836836
the submitted data, those fields will be explicitly set to ``null``.
837837

838+
The field data can be accessed in a controller with::
839+
840+
$form->get('dueDate')->getData();
841+
838842
.. index::
839843
pair: Forms; Doctrine
840844

0 commit comments

Comments
 (0)