You are currently reading the 1.2 documentation. Switch to 2.2  2.1  2.0 

Examples

You can turn on all validations by using the Doctrine_Core::VALIDATE_ALL attribute with the following code:

// bootstrap.php

// ...
$manager->setAttribute(Doctrine_Core::ATTR_VALIDATE, Doctrine_Core::VALIDATE_ALL);

You can also configure Doctrine to validate lengths and types, but not constraints with the following code:

// bootstrap.php

// ...
$manager->setAttribute(Doctrine_Core::ATTR_VALIDATE,
  Doctrine_Core::VALIDATE_LENGTHS | Doctrine_Core::VALIDATE_TYPES);

Questions and Feedback

If you find a problem with the documentation or have a suggestion, please register and open a ticket.

If you need support or have a technical question, you can post to the user mailing-list.