Skip to content

Validation Constraints Reference

Edit this page

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.

Read the Validation article to learn how to apply these constraints and how to create a custom constraint if none of them fits your needs.

This work, including the code samples, is licensed under a Creative Commons BY-SA 3.0 license.
TOC
    Version