From 1fef41e2c302635c31b8f9d62fd0881a601fceb6 Mon Sep 17 00:00:00 2001 From: jackbravo Date: Tue, 4 Sep 2007 18:08:45 +0000 Subject: [PATCH] ATTR_VLD is deprecated --- manual/new/docs/en/configuration/levels-of-configuration.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manual/new/docs/en/configuration/levels-of-configuration.txt b/manual/new/docs/en/configuration/levels-of-configuration.txt index b73caf16c..d648809af 100644 --- a/manual/new/docs/en/configuration/levels-of-configuration.txt +++ b/manual/new/docs/en/configuration/levels-of-configuration.txt @@ -9,7 +9,7 @@ In the following example we set an attribute at the global level: // setting a global level attribute $manager = Doctrine_Manager::getInstance(); -$manager->setAttribute(Doctrine::ATTR_VLD, false); +$manager->setAttribute(Doctrine::ATTR_VALIDATE, Doctrine::VALIDATE_ALL); In the next example above we override the global attribute on given connection. @@ -19,7 +19,7 @@ In the next example above we override the global attribute on given connection. $conn = $manager->openConnection(new PDO('dsn', 'username', 'pw')); -$conn->setAttribute(Doctrine::ATTR_VLD, true); +$conn->setAttribute(Doctrine::ATTR_VALIDATE, Doctrine::VALIDATE_NONE); In the last example we override once again the connection level attribute in the table level.