. */ /** * 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(); } }