Skip to content

Commit

Permalink
bug #3414 add missing code-block directive (xabbuh)
Browse files Browse the repository at this point in the history
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 0b2a491
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions reference/forms/types/options/data_class.rst.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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 # to comment.