Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.2k
[Validator] Add normalizer option to Unique constraint#15124
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
[Validator] Add normalizer option to Unique constraint#15124
Uh oh!
There was an error while loading.Please reload this page.
Conversation
reference/constraints/Unique.rst Outdated
:phpfunction:`trim` PHP function to each element of the collection in order to ignore leading and trailing | ||
whitespace during validation. | ||
.. _`PHP callable`: https://www.php.net/callable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Please move this to the bottom of the file
For example, you may want to pass the ``'trim'`` string to apply the | ||
:phpfunction:`trim` PHP function to each element of the collection in order to ignore leading and trailing | ||
whitespace during validation. | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Please add a versionadded directive
The ''normalizer'' option was introduced in Symfony 5.3.
' is a backtick, I am currently on a phone 📱😄
reference/constraints/Unique.rst Outdated
@@ -107,8 +109,8 @@ Options | |||
.. include:: /reference/constraints/_groups-option.rst.inc | |||
message | |||
~~~~~~~ | |||
``message`` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Is this the case for all constraints? If yes this should be fixed in the lowest maintained branch (4.4) for the constraints.
We would be glad to receive such a PR from your side, but if you don't have time, no worries.
This should not be fixed in this PR, so please revert this line, thanks
@OskarStark thanks. fixed |
227c9a1
to92072d9
CompareAndrii, thanks for this nice contribution! |
Uh oh!
There was an error while loading.Please reload this page.
Hello. Documenting the featuresymfony/symfony#38488 about
normalizer
option for Unique constraint.Thanks!