-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Changes from 1 commit
a75b30a
cabb2ac
13cd6c2
9b1ad11
e28cda6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
Create data_class documentation.
- Loading branch information
There are no files selected for viewing
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. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. you should wrap your lines after the first word that crosses the 72th character |
||
|
||
$builder->add('media', 'sonata_media_type', array( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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', | ||
)); | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. remove this empty line |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you should add a versionadded directive before this line:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But this isn't correct, right? The
data_class
option has always existed.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, indeed. You're correct https://gist.github.com/WouterJ/5246728#file-tree-L100