From 1cc24ebc592c14a64cfc54a205276ea02c0c3c1b Mon Sep 17 00:00:00 2001 From: zYne Date: Mon, 21 Aug 2006 23:21:16 +0000 Subject: [PATCH] --- Doctrine/Statement.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Doctrine/Statement.php b/Doctrine/Statement.php index 39cd71374..9e9379356 100644 --- a/Doctrine/Statement.php +++ b/Doctrine/Statement.php @@ -44,7 +44,7 @@ class Doctrine_Statement extends Doctrine_Access { * @return Doctrine_Collection */ private function getCollection($name) { - $table = $this->session->getTable($name); + $table = $this->connection->getTable($name); switch($this->fetchModes[$name]): case Doctrine::FETCH_BATCH: $coll = new Doctrine_Collection_Batch($table); @@ -85,7 +85,7 @@ class Doctrine_Statement extends Doctrine_Access { $keys = array_keys($this->tables); $name = $this->tables[$keys[0]]->getComponentName(); - $stmt = $this->session->execute($query,$params); + $stmt = $this->connection->execute($query,$params); while($data = $stmt->fetch(PDO::FETCH_ASSOC)): foreach($data as $key => $value): @@ -107,7 +107,7 @@ class Doctrine_Statement extends Doctrine_Access { $keys = array_keys($this->tables); $root = $keys[0]; - $stmt = $this->session->execute($query,$params); + $stmt = $this->connection->execute($query,$params); $previd = array();