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.
2 parents 4988118 + 9b1aab8 commit 0b2a491Copy full SHA for 0b2a491
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