symfony / symfony-docs

The Symfony documentation
https://symfony.com/doc
Other
2.15k stars 5.1k forks source link

[Validator] Add `errorPath` to Unique constraint #19976

Open fabpot opened 2 weeks ago

fabpot commented 2 weeks ago
Q A
Feature PR symfony/symfony#57436
PR author(s) @norkunas
Merged in 7.2

We created this issue to not forget to document this new feature. We would really appreciate if you can help us with this task. If you are not sure how to do it, please ask us and we will help you.

To fix this issue, please create a PR against the 7.2 branch in the symfony-docs repository.

Thank you! :smiley:

norkunas commented 2 weeks ago

I thought I'll submit PR but before I want to discuss about the little difference between UniqueEntity and Unique constraints that UniqueEntity uses first defined field if error path is not provided. Should Unique also fallback to first field, if at least one field is defined?