From b9a3e0cd20621cb9637d61d13fd44393f57bfa05 Mon Sep 17 00:00:00 2001 From: "Jonathan.Wage" Date: Tue, 14 Aug 2007 18:11:06 +0000 Subject: [PATCH] Added call to ->getSql() back to ensure parsing has happened so we can determine the root alias. --- lib/Doctrine/Hydrate.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Doctrine/Hydrate.php b/lib/Doctrine/Hydrate.php index 9041b3fb5..6c5037af5 100644 --- a/lib/Doctrine/Hydrate.php +++ b/lib/Doctrine/Hydrate.php @@ -179,6 +179,8 @@ class Doctrine_Hydrate extends Doctrine_Object implements Serializable */ public function getRootAlias() { + $this->getSql(); + reset($this->_aliasMap); return key($this->_aliasMap);