From d8dddffcfd6a4757318ab7ccdc48c8c141fcdc47 Mon Sep 17 00:00:00 2001 From: runa Date: Mon, 30 Oct 2006 20:55:25 +0000 Subject: [PATCH] new datadict objects need the PDO object, not Doctrine_Connection --- lib/Doctrine/Connection.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/Doctrine/Connection.php b/lib/Doctrine/Connection.php index 948b99ac2..ff8013a6f 100644 --- a/lib/Doctrine/Connection.php +++ b/lib/Doctrine/Connection.php @@ -124,21 +124,21 @@ abstract class Doctrine_Connection extends Doctrine_Configurable implements Coun $driver = $this->dbh->getAttribute(PDO::ATTR_DRIVER_NAME); switch($driver) { case "mysql": - $this->dataDict = new Doctrine_DataDict_Mysql($this); + $this->dataDict = new Doctrine_DataDict_Mysql($this->dbh); break; case "sqlite": case "sqlite2": - $this->dataDict = new Doctrine_DataDict_Sqlite($this); + $this->dataDict = new Doctrine_DataDict_Sqlite($this->dbh); break; case "pgsql": - $this->dataDict = new Doctrine_DataDict_Pgsql($this); + $this->dataDict = new Doctrine_DataDict_Pgsql($this->dbh); break; case "oci": case "oci8": - $this->dataDict = new Doctrine_DataDict_Oracle($this); + $this->dataDict = new Doctrine_DataDict_Oracle($this->dbh); break; case "mssql": - $this->dataDict = new Doctrine_DataDict_Mssql($this); + $this->dataDict = new Doctrine_DataDict_Mssql($this->dbh); break; default: throw new Doctrine_Connection_Exception("No datadict driver availible for ".$driver);