diff --git a/lib/Doctrine/Db/EventListener/Chain.php b/lib/Doctrine/Db/EventListener/Chain.php index cadf203ac..562fc85ba 100644 --- a/lib/Doctrine/Db/EventListener/Chain.php +++ b/lib/Doctrine/Db/EventListener/Chain.php @@ -18,6 +18,9 @@ * and is licensed under the LGPL. For more information, see * . */ +Doctrine::autoload('Doctrine_Access'); + +Doctrine::autoload('Doctrine_Db_EventListener_Interface'); /** * Doctrine_Db_EventListener * diff --git a/lib/Doctrine/Db/LazyConnector.php b/lib/Doctrine/Db/LazyConnector.php deleted file mode 100644 index 54ee4ab2d..000000000 --- a/lib/Doctrine/Db/LazyConnector.php +++ /dev/null @@ -1,48 +0,0 @@ -. - */ -/** - * Doctrine_Db_LazyConnector - * - * @author Konsta Vesterinen - * @license LGPL - * @package Doctrine - */ -class Doctrine_Db_LazyConnector extends Doctrine_Db_EventListener { - public function onPreQuery(Doctrine_Db $dbh, array $args) { - $dbh->connect(); - } - - public function onPrePrepare(Doctrine_Db $dbh, array $args) { - $dbh->connect(); - } - - public function onPreCommit(Doctrine_Db $dbh) { - $dbh->connect(); - } - - public function onPreRollBack(Doctrine_Db $dbh) { - $dbh->connect(); - } - - public function onPreBeginTransaction(Doctrine_Db $dbh) { - $dbh->connect(); - } -}