1
0
mirror of synced 2025-01-29 19:41:45 +03:00
This commit is contained in:
zYne 2006-08-21 23:21:16 +00:00
parent 5f1c8d10b1
commit 1cc24ebc59

View File

@ -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();