-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Composite Constraint not documented. #10381
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
The class is abstract... and a base for so yes, internal implementation detail to me :) but i'm not sure how it's implemented exactly, you might leverage it for your own "composites" i guess. AFAIK core only uses it for the |
We could actually include a note for all composite constraints: All, Valid and Collection. |
Not sure it’s worth having it in the documentation 🤔 |
We should maybe rather think about marking it internal in the code instead. |
Closing for now in favor of the symfony/symfony#34830, which might mark this as internal. Thanks. |
There is a Composite Constraint
https://api.symfony.com/4.1/Symfony/Component/Validator/Constraints/Composite.html
but it completely lacks documentation. Does it allow for constructing logical alternative of other constraints? Like
@Composite({@LessThan(4), @GreaterThan(8)})
? Or is it designed for something entirely different?The text was updated successfully, but these errors were encountered: