Skip to content

remove "choices_as_values" mention #8832

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

Merged
merged 2 commits into from
Dec 5, 2017
Merged

Conversation

jcrombez
Copy link
Contributor

@jcrombez jcrombez commented Dec 5, 2017

"choices_as_values" is still mentioned in the "Create a custom form field type" doc but has been removed in 4.0.

"choices_as_values" is still mentioned in the "Create a custom form field type" doc but has been removed in 4.0.
@@ -35,8 +35,7 @@ for form fields, which is ``<BundleName>\Form\Type``. Make sure the field extend
'Standard Shipping' => 'standard',
'Expedited Shipping' => 'expedited',
'Priority Shipping' => 'priority',
),
'choices_as_values' => true,
)
Copy link
Member

Choose a reason for hiding this comment

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

Can you add back the trailing comma here?

@xabbuh xabbuh added this to the 3.3 milestone Dec 5, 2017
@xabbuh
Copy link
Member

xabbuh commented Dec 5, 2017

We could IMO merge this into the 3.3 branch as this option was pretty useless in Symfony 3.

@jcrombez
Copy link
Contributor Author

jcrombez commented Dec 5, 2017

Yes, this might be a good idea.

@weaverryan
Copy link
Member

Thanks Jérémy! I merged into 4.0 - I didn't feel strongly either way. It has perhaps some historical value on 3.3 (to explain what this option is and why you might see it in your project). Anyways, good catch and thank you!

@weaverryan weaverryan merged commit 79109a8 into symfony:4.0 Dec 5, 2017
weaverryan added a commit that referenced this pull request Dec 5, 2017
This PR was squashed before being merged into the 4.0 branch (closes #8832).

Discussion
----------

remove "choices_as_values" mention

"choices_as_values" is still mentioned in the "Create a custom form field type" doc but has been removed in 4.0.

Commits
-------

79109a8 add back the trailing comma
982baa5 remove "choices_as_values" mention
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants