1
0
mirror of synced 2025-01-17 22:11:41 +03:00

ATTR_VLD is deprecated

This commit is contained in:
jackbravo 2007-09-04 18:08:45 +00:00
parent 7e18a0a8e4
commit 1fef41e2c3

View File

@ -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);
</code>
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);
</code>
In the last example we override once again the connection level attribute in the table level.