-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Validator] Add constraint on unique elements collection(Assert\Unique) #26535
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
Comments
Another duplicate of #9888 But you are free to implement this part at least. It's easiest one anyway. |
closing here as this feature request is included in #9888 |
fabpot
added a commit
that referenced
this issue
Mar 25, 2019
…on(Assert\Unique) (zenmate, nicolas-grekas) This PR was merged into the 4.3-dev branch. Discussion ---------- [Validator] Add constraint on unique elements collection(Assert\Unique) | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | no <!-- please add some, will be required by reviewers --> | Fixed tickets | #26535 | License | MIT | Doc PR | symfony/symfony-docs#... <!-- required for new features --> <!-- Write a short README entry for your feature/bugfix here (replace this comment block.) This will help people understand your PR and can be used as a start of the Doc PR. Additionally: - Bug fixes must be submitted against the lowest branch where they apply (lowest branches are regularly merged to upper ones so they get the fixes too). - Features and deprecations must be submitted against the master branch. --> Commits ------- d0eb13e Rebase and update to latest CS fc66683 Add UniqueCollection constraint and validator
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
What about add constraint on unique elements collection?
I think it will be named as Assert\UniqueCollection.
It is partly linked with #9888
What do you think? I'd be happy to send a PR after it's discussed.
The text was updated successfully, but these errors were encountered: