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

Skip to content

[OptionsResolver] [Form] Options are normalized before validation #11699

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
kix opened this issue Aug 19, 2014 · 1 comment
Closed

[OptionsResolver] [Form] Options are normalized before validation #11699

kix opened this issue Aug 19, 2014 · 1 comment

Comments

@kix
Copy link
Contributor

kix commented Aug 19, 2014

OptionsResolve::resolve method produces Options::all call before validating option values. Options::all call then executes normalizers with options that have not been validated yet. This makes it impossible to constrain options that are passed to normalizers in form types, like ChoiceType, CollectionType, CountryType, LanguageType, LocaleType, TimezoneType, TimeType and CurrencyType.

This issue was discovered while fixing #11694 with PR #11696

@stof
Copy link
Member

stof commented Aug 19, 2014

Duplicate of #4500

@stof stof closed this as completed Aug 19, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants