Permalink
Browse files

bug #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
  • Loading branch information...
weaverryan committed Jan 9, 2014
2 parents 4988118 + 9b1aab8 commit 0b2a49199752f60aa1bcc16d48f4c558160e852e
Showing with 2 additions and 0 deletions.
  1. +2 −0 reference/forms/types/options/data_class.rst.inc
@@ -9,6 +9,8 @@ data_class
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.
.. code-block:: php
$builder->add('media', 'sonata_media_type', array(
'data_class' => 'Acme\DemoBundle\Entity\Media',
));

0 comments on commit 0b2a491

Please sign in to comment.