We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 704302c commit 2cbe0bcCopy full SHA for 2cbe0bc
reference/forms/types/options/data_class.rst.inc
@@ -3,9 +3,9 @@ data_class
3
4
**type**: ``string``
5
6
-This option is used to set the appropriate data mapper to be used by the form, so you can use it for any form field type which requires an object.
+This option is used to set the appropriate data mapper to be used by the form,
7
+so you can use it for any form field type which requires an object.
8
9
$builder->add('media', 'sonata_media_type', array(
10
'data_class' => 'Acme\DemoBundle\Entity\Media',
11
));
-
0 commit comments