Skip to content
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

The current version of the documentation recommends the use of Validation Groups for forms #4888

Closed
RaederDev opened this issue Jan 20, 2015 · 2 comments

Comments

@RaederDev
Copy link

The current version of the documentation recommends the the use of Validation Groups, even though they have been deprecated. Is there any alternative to using the setDefaultOptions method in the new version of symfony? Or will you have to construct the OptionsResolver manually and filter the configuration array with that?

http://symfony.com/doc/current/book/forms.html#validation-groups

@wouterj
Copy link
Member

wouterj commented Jan 20, 2015

There is nothing wrong with validation groups. And setDefaultOptions is deprecated and replaced by configureOptions in 2.7. setDefaultOptions is not deprecated in Symfony 2.6, so the current version docs should still use setDefaultOptions.

There is already a PR to update the 2.7 docs to use configureOptions: #4786

@RaederDev
Copy link
Author

Oh yeah, you are right sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants