From 3e7d9d227e2e4c792f8792f92c5c109e1353d9a6 Mon Sep 17 00:00:00 2001 From: romanb Date: Wed, 17 Oct 2007 19:44:08 +0000 Subject: [PATCH] small update to validation docs --- manual/new/docs/en/plugins/validators.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/manual/new/docs/en/plugins/validators.txt b/manual/new/docs/en/plugins/validators.txt index 882d1b3a6..1c4714148 100644 --- a/manual/new/docs/en/plugins/validators.txt +++ b/manual/new/docs/en/plugins/validators.txt @@ -9,7 +9,13 @@ Once you enabled validation, you'll get a bunch of validations automatically: // turning on validation -Doctrine_Manager::getInstance()->setAttribute(Doctrine::ATTR_VLD, true); +Doctrine_Manager::getInstance()->setAttribute(Doctrine::ATTR_VALIDATE, Doctrine::VALIDATE_ALL); + + +You can combine the following constants by using bitwise operations: VALIDATE_ALL, VALIDATE_TYPES, VALIDATE_LENGTHS, +VALIDATE_CONSTRAINTS, VALIDATE_NONE. For example to enbale all validations except length validations you would use: + +VALIDATE_ALL & ~VALIDATE_LENGTHS +++ More Validation