From 9b1aab803bf033167f48dfc258c46dbafdf88df7 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Fri, 3 Jan 2014 16:51:19 +0100 Subject: [PATCH] add missing code-block directive --- reference/forms/types/options/data_class.rst.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/reference/forms/types/options/data_class.rst.inc b/reference/forms/types/options/data_class.rst.inc index 3636dbf13d6..47be20a162e 100644 --- a/reference/forms/types/options/data_class.rst.inc +++ b/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', ));