Skip to content

Commit 9b1aab8

Browse files
committed
add missing code-block directive
1 parent 0428c57 commit 9b1aab8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

reference/forms/types/options/data_class.rst.inc

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ data_class
99
This option is used to set the appropriate data mapper to be used by the form,
1010
so you can use it for any form field type which requires an object.
1111

12+
.. code-block:: php
13+
1214
$builder->add('media', 'sonata_media_type', array(
1315
'data_class' => 'Acme\DemoBundle\Entity\Media',
1416
));

0 commit comments

Comments
 (0)