Skip to content

Move range to the comparison constraint types #10249

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 2 commits into from

Conversation

alexander-schranz
Copy link
Contributor

As the Range constraint also work for date fields the section headline Number Constraints is misleading. As I first thought that the Range will work only for numbers then.

fixes #10229

@javiereguiluz
Copy link
Member

@alexander-schranz thanks for reporting this issue in the first place and for providing a fix for it!

javiereguiluz added a commit that referenced this pull request Sep 4, 2018
…-schranz)

This PR was squashed before being merged into the 2.8 branch (closes #10249).

Discussion
----------

Move range to the comparison constraint types

As the [Range](http://symfony.com/doc/3.4/reference/constraints/Range.html) constraint also work for **date** fields  the section headline [Number Constraints](http://symfony.com/doc/3.4/reference/constraints.html#number-constraints) is misleading. As I first thought that the Range will work only for numbers then.

fixes #10229

Commits
-------

7921ae5 Move range to the comparison constraint types
@alexander-schranz alexander-schranz deleted the patch-1 branch September 4, 2018 07:10
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.

3 participants