.. toctree:: :maxdepth: 1 :hidden: constraints/NotBlank constraints/Blank constraints/NotNull constraints/Null constraints/True constraints/False constraints/Type constraints/Email constraints/Length constraints/Url constraints/Regex constraints/Ip constraints/Uuid constraints/Range constraints/EqualTo constraints/NotEqualTo constraints/IdenticalTo constraints/NotIdenticalTo constraints/LessThan constraints/LessThanOrEqual constraints/GreaterThan constraints/GreaterThanOrEqual constraints/Date constraints/DateTime constraints/Time constraints/Choice constraints/Collection constraints/Count constraints/UniqueEntity constraints/Language constraints/Locale constraints/Country constraints/File constraints/Image constraints/CardScheme constraints/Currency constraints/Luhn constraints/Iban constraints/Isbn constraints/Issn constraints/Callback constraints/Expression constraints/All constraints/UserPassword constraints/Valid
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.
The following constraints are natively available in Symfony2: