Commit 3e7d9d22 authored by romanb's avatar romanb

small update to validation docs

parent 5f0b6cd1
...@@ -9,7 +9,13 @@ Once you enabled validation, you'll get a bunch of validations automatically: ...@@ -9,7 +9,13 @@ Once you enabled validation, you'll get a bunch of validations automatically:
<code type="php"> <code type="php">
// turning on validation // turning on validation
Doctrine_Manager::getInstance()->setAttribute(Doctrine::ATTR_VLD, true); Doctrine_Manager::getInstance()->setAttribute(Doctrine::ATTR_VALIDATE, Doctrine::VALIDATE_ALL);
</code>
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:
<code>
VALIDATE_ALL & ~VALIDATE_LENGTHS
</code> </code>
+++ More Validation +++ More Validation
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment