From 199d818f380ab31af82fbbe43d109a29881deea5 Mon Sep 17 00:00:00 2001 From: zYne Date: Thu, 24 May 2007 14:36:10 +0000 Subject: [PATCH] --- lib/Doctrine/Query.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Doctrine/Query.php b/lib/Doctrine/Query.php index 76aa5bc3d..42134659a 100644 --- a/lib/Doctrine/Query.php +++ b/lib/Doctrine/Query.php @@ -921,8 +921,8 @@ class Doctrine_Query extends Doctrine_Query_Abstract implements Countable $join = ($delimeter == ':') ? 'INNER JOIN ' : 'LEFT JOIN '; $relation = $table->getRelation($name); - - $this->_aliasMap[$componentAlias] = array('table' => $relation->getTable(), + $table = $relation->getTable(); + $this->_aliasMap[$componentAlias] = array('table' => $table, 'parent' => $parent, 'relation' => $relation); if ( ! $relation->isOneToOne()) {