From 485067cad7d7d0435884bc19b7a46b5472a19cb7 Mon Sep 17 00:00:00 2001 From: doctrine Date: Mon, 7 Aug 2006 21:07:29 +0000 Subject: [PATCH] Doctrine_Hydrate now abstract --- Doctrine/Hydrate.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Doctrine/Hydrate.php b/Doctrine/Hydrate.php index 7137edab0..7c119c620 100644 --- a/Doctrine/Hydrate.php +++ b/Doctrine/Hydrate.php @@ -28,7 +28,7 @@ Doctrine::autoload('Doctrine_Access'); * @url www.phpdoctrine.com * @license LGPL */ -class Doctrine_Hydrate extends Doctrine_Access { +abstract class Doctrine_Hydrate extends Doctrine_Access { /** * @var array $fetchmodes an array containing all fetchmodes */ @@ -92,6 +92,12 @@ class Doctrine_Hydrate extends Doctrine_Access { public function __construct(Doctrine_Session $session) { $this->session = $session; } + /** + * getQuery + * + * @return string + */ + abstract public function getQuery(); /** * remove * @@ -272,7 +278,7 @@ class Doctrine_Hydrate extends Doctrine_Access { if($return == Doctrine::RETURN_VHOLDER) { return $this->hydrateHolders($array); } - + foreach($array as $data) { /** * remove duplicated data rows and map data into objects