Skip to content

Commit 0b2a491

Browse files
committed
bug symfony#3414 add missing code-block directive (xabbuh)
This PR was merged into the 2.3 branch. Discussion ---------- add missing code-block directive | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | all | Fixed tickets | Commits ------- 9b1aab8 add missing code-block directive
2 parents 4988118 + 9b1aab8 commit 0b2a491

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
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)