From f86ac4c8e235837d880ded1f821bcf85db22ccd0 Mon Sep 17 00:00:00 2001 From: zYne Date: Mon, 25 Jun 2007 19:56:15 +0000 Subject: [PATCH] getDbh() now auto-connects --- lib/Doctrine/Connection.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Doctrine/Connection.php b/lib/Doctrine/Connection.php index c0e40f869..2b0337859 100644 --- a/lib/Doctrine/Connection.php +++ b/lib/Doctrine/Connection.php @@ -310,6 +310,8 @@ abstract class Doctrine_Connection extends Doctrine_Configurable implements Coun */ public function getDbh() { + $this->connect(); + return $this->dbh; } /**