SymfonyWorld 2022 Summer Edition
100% Online
+20 talks and workshops
Starts in 22 days

Validation Constraints Reference

Edit this page

Warning: You are browsing the documentation for Symfony 4.0, which is no longer maintained.

Read the updated version of this page for Symfony 6.0 (the current stable version).

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 Symfony, 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.