Skip to content
New issue

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

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

Already on GitHub? # to your account

Create data_class.rst.inc #2362 #3334

Closed
wants to merge 5 commits into from
Closed

Create data_class.rst.inc #2362 #3334

wants to merge 5 commits into from

Conversation

dpcat237
Copy link
Contributor

Q A
Doc fix? yes
New docs? no
Applies to 2.3+
Fixed tickets #2362

Create data_class documentation.
@dorians dorians mentioned this pull request Dec 14, 2013
15 tasks
$builder->add('media', 'sonata_media_type', array(
'data_class' => 'Acme\DemoBundle\Entity\Media',
));

Copy link
Member

Choose a reason for hiding this comment

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

remove this empty line

@wouterj
Copy link
Member

wouterj commented Dec 14, 2013

As I already said on your other PR, this option has to be included in some relevant form type docs

@dpcat237
Copy link
Contributor Author

@wouterj Do I have to do something else in this pull request?

@wouterj
Copy link
Member

wouterj commented Dec 17, 2013

@dpcat237 we can also add this option to the base Form type, as it also exists there.

@@ -0,0 +1,11 @@
data_class
Copy link
Member

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:

.. versionadded:: 2.4
    The ``data_class`` option was introduced in Symfony 2.4.

Copy link
Member

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.

Copy link
Member

Choose a reason for hiding this comment

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

weaverryan pushed a commit that referenced this pull request Jan 1, 2014
weaverryan pushed a commit that referenced this pull request Jan 1, 2014
@weaverryan
Copy link
Member

Thanks Denys! I've patched this into the 2.3 branch at sha: 00f4d31.

Nice work with this and thanks for hanging out with us on the Hack Day :).

Cheers!

@weaverryan weaverryan closed this Jan 1, 2014
xabbuh added a commit to xabbuh/symfony-docs that referenced this pull request Jan 3, 2014
weaverryan added a commit that referenced this pull request Jan 9, 2014
…bbuh)

This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes #3415).

Discussion
----------

[#3334] the data_class option was not introduced in 2.4

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | all
| Fixed tickets |

Commits
-------

c96e6eb [#3334] the data_class option was not introduced in 2.4
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants