From 029b9aeb5dd1f280485766c6e333536e6b4fbcc6 Mon Sep 17 00:00:00 2001 From: guilhermeblanco Date: Sat, 5 Sep 2009 18:27:37 +0000 Subject: [PATCH] [2.0] Added missing connect() call in Connection:quote, which was throwing E_FATAL when using DQL. Thanks Damon Jones for the report --- lib/Doctrine/DBAL/Connection.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Doctrine/DBAL/Connection.php b/lib/Doctrine/DBAL/Connection.php index 9be0165dc..af45463b1 100644 --- a/lib/Doctrine/DBAL/Connection.php +++ b/lib/Doctrine/DBAL/Connection.php @@ -519,6 +519,8 @@ class Connection */ public function quote($input, $type = null) { + $this->connect(); + return $this->_conn->quote($input, $type); }