Commit 485067ca authored by doctrine's avatar doctrine

Doctrine_Hydrate now abstract

parent 7f5844d1
...@@ -28,7 +28,7 @@ Doctrine::autoload('Doctrine_Access'); ...@@ -28,7 +28,7 @@ Doctrine::autoload('Doctrine_Access');
* @url www.phpdoctrine.com * @url www.phpdoctrine.com
* @license LGPL * @license LGPL
*/ */
class Doctrine_Hydrate extends Doctrine_Access { abstract class Doctrine_Hydrate extends Doctrine_Access {
/** /**
* @var array $fetchmodes an array containing all fetchmodes * @var array $fetchmodes an array containing all fetchmodes
*/ */
...@@ -92,6 +92,12 @@ class Doctrine_Hydrate extends Doctrine_Access { ...@@ -92,6 +92,12 @@ class Doctrine_Hydrate extends Doctrine_Access {
public function __construct(Doctrine_Session $session) { public function __construct(Doctrine_Session $session) {
$this->session = $session; $this->session = $session;
} }
/**
* getQuery
*
* @return string
*/
abstract public function getQuery();
/** /**
* remove * remove
* *
...@@ -272,7 +278,7 @@ class Doctrine_Hydrate extends Doctrine_Access { ...@@ -272,7 +278,7 @@ class Doctrine_Hydrate extends Doctrine_Access {
if($return == Doctrine::RETURN_VHOLDER) { if($return == Doctrine::RETURN_VHOLDER) {
return $this->hydrateHolders($array); return $this->hydrateHolders($array);
} }
foreach($array as $data) { foreach($array as $data) {
/** /**
* remove duplicated data rows and map data into objects * remove duplicated data rows and map data into objects
......
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