WARNING:
You are browsing the documentation for Symfony 2.1
which is not maintained anymore.
Consider upgrading your projects to Symfony 5.0.
Validation Constraints Reference
Validation Constraints Reference¶
The Validator is designed to validate objects against constraints. In real life, a constraint could be: "The cake must not be burned". In Symfony2, constraints are similar: They are assertions that a condition is true.
This work, including the code samples, is licensed under a Creative Commons BY-SA 3.0 license.