8000 Create data_class.rst.inc #2362 by dpcat237 · Pull Request #3334 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Create data_class.rst.inc #2362 #3334

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 5 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Wrap the content and remove empty space.
  • Loading branch information
dpcat237 committed Dec 16, 2013
commit cabb2ac9604283a39e9b11213817f671da23c851
4 changes: 2 additions & 2 deletions reference/forms/types/options/data_class.rst.inc
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ 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.
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(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if using a 3th party type is what we want

'data_class' => 'Acme\DemoBundle\Entity\Media',
));

0