Commit aa48f564 authored by zYne's avatar zYne

--no commit message

--no commit message
parent 9ea8d5da
...@@ -58,19 +58,10 @@ abstract class Doctrine_Hydrate extends Doctrine_Access ...@@ -58,19 +58,10 @@ abstract class Doctrine_Hydrate extends Doctrine_Access
* constant for CREATE queries * constant for CREATE queries
*/ */
const CREATE = 4; const CREATE = 4;
/**
* @var array $fetchmodes an array containing all fetchmodes
*/
protected $fetchModes = array();
/** /**
* @var array $tables an array containing all the tables used in the query * @var array $tables an array containing all the tables used in the query
*/ */
protected $tables = array(); protected $tables = array();
/**
* @var array $collections an array containing all collections
* this hydrater has created/will create
*/
protected $collections = array();
/** /**
* @var array $joins an array containing all table joins * @var array $joins an array containing all table joins
*/ */
...@@ -349,40 +340,6 @@ abstract class Doctrine_Hydrate extends Doctrine_Access ...@@ -349,40 +340,6 @@ abstract class Doctrine_Hydrate extends Doctrine_Access
} }
return $this->tableAliases[$path]; return $this->tableAliases[$path];
} }
/**
* getCollection
*
* @parma string $name component name
* @param integer $index
*/
private function getCollection($name)
{
$table = $this->tables[$name];
if ( ! isset($this->fetchModes[$name])) {
return new Doctrine_Collection($table);
}
switch ($this->fetchModes[$name]) {
case Doctrine::FETCH_BATCH:
$coll = new Doctrine_Collection_Batch($table);
break;
case Doctrine::FETCH_LAZY:
$coll = new Doctrine_Collection_Lazy($table);
break;
case Doctrine::FETCH_OFFSET:
$coll = new Doctrine_Collection_Offset($table);
break;
case Doctrine::FETCH_IMMEDIATE:
$coll = new Doctrine_Collection_Immediate($table);
break;
case Doctrine::FETCH_LAZY_OFFSET:
$coll = new Doctrine_Collection_LazyOffset($table);
break;
default:
throw new Doctrine_Exception("Unknown fetchmode");
};
return $coll;
}
/** /**
* setParams * setParams
* *
...@@ -748,9 +705,9 @@ abstract class Doctrine_Hydrate extends Doctrine_Access ...@@ -748,9 +705,9 @@ abstract class Doctrine_Hydrate extends Doctrine_Access
$data[$component][$field] = $value; $data[$component][$field] = $value;
unset($data[$key]); unset($data[$key]);
}; }
$array[] = $data; $array[] = $data;
}; }
$stmt->closeCursor(); $stmt->closeCursor();
return $array; return $array;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment