Thanks to visit codestin.com
Credit goes to github.com

Skip to content

remove 'placeholder' from empty-data example #7299

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 1 commit into from

Conversation

teameh
Copy link

@teameh teameh commented Dec 29, 2016

This snippet is also included on the [TextType Field] page (http://symfony.com/doc/current/reference/forms/types/text.html) and might trick novice Symfony dev's into using the placeholder for the TextType as well. I think the placeholder can be removed here making the example even more to the point.

image

@HeahDude
Copy link
Contributor

Prior to symfony 2.6 placeholder option was named empty_value which could lead to even more confusion.

Not sure this is still relevant though, but I've also a WIP for this option (#6265) that will remove this all together anyway.

@teameh
Copy link
Author

teameh commented Dec 30, 2016

Prior to symfony 2.6 placeholder option was named empty_value which could lead to even more confusion.

Check, I'm new here, thanks.

Not sure this is still relevant though, but I've also a WIP for this option (#6265) that will remove this all together anyway.

And it's still WIP because you've only changed the docs so far right?

xabbuh added a commit that referenced this pull request May 4, 2017
…s more visisble (HeahDude, wouterj, javiereguiluz)

This PR was merged into the 2.7 branch.

Discussion
----------

[Form] Make difference between data and empty_data options more visisble

Finishes #6265
Fixes #7299, #7596

Commits
-------

64e3984 Fixed a minor typo
df9b878 Fixed a minor typo
f375489 Better explain empty_data values
d552ea3 Readd mixed type for empty_data, it can be string, array or object
188f0ab Tried to write the important points more explicitly
5f3813d Updated the example add added a caution
4fd2d96 Addressed @stof's comment
242941a improved accuracy
67c93b6 fix typo
87b3542 explicit differences between 'data' & 'empty_data' in FormType
@xabbuh
Copy link
Member

xabbuh commented May 5, 2017

Thank you for proposing this change @teameh. I have to close here nonetheless as this change is also covered by #7802 which made some more changes.

@xabbuh xabbuh closed this May 5, 2017
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