Skip to content

Commit

Permalink
Create data_class.rst.inc #2362
Browse files Browse the repository at this point in the history
Create data_class documentation.
  • Loading branch information
dpcat237 authored and weaverryan committed Jan 1, 2014
1 parent 5194403 commit 704302c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions reference/forms/types/options/data_class.rst.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
data_class
~~~~~~~~~~

**type**: ``string``

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.

$builder->add('media', 'sonata_media_type', array(
'data_class' => 'Acme\DemoBundle\Entity\Media',
));

0 comments on commit 704302c

Please # to comment.