We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0428c57 commit 9b1aab8Copy full SHA for 9b1aab8
reference/forms/types/options/data_class.rst.inc
@@ -9,6 +9,8 @@ data_class
9
This option is used to set the appropriate data mapper to be used by the form,
10
so you can use it for any form field type which requires an object.
11
12
+.. code-block:: php
13
+
14
$builder->add('media', 'sonata_media_type', array(
15
'data_class' => 'Acme\DemoBundle\Entity\Media',
16
));
0 commit comments