From: Chuck Hagenbuch Date: Thu, 27 Aug 2009 03:33:44 +0000 (-0400) Subject: Two more places to use tableAlias instead of table X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=7edcf7202bf864591cf65b7b98847a0c688c08c9;p=horde.git Two more places to use tableAlias instead of table --- diff --git a/framework/Rdo/lib/Horde/Rdo/Query.php b/framework/Rdo/lib/Horde/Rdo/Query.php index f252b98b9..7b0d10644 100644 --- a/framework/Rdo/lib/Horde/Rdo/Query.php +++ b/framework/Rdo/lib/Horde/Rdo/Query.php @@ -379,7 +379,7 @@ class Horde_Rdo_Query if (!isset($this->relationships[$rel])) { continue; } - $clause = $this->relationships[$rel]['table'] . '.' . $field . ' ' . $test['test']; + $clause = $this->relationships[$rel]['tableAlias'] . '.' . $field . ' ' . $test['test']; } else { $clause = $this->mapper->table . '.' . $this->mapper->adapter->quoteColumnName($test['field']) . ' ' . $test['test']; } @@ -414,7 +414,7 @@ class Horde_Rdo_Query if (!isset($this->relationships[$rel])) { continue; } - $sql .= ' ' . $this->relationships[$rel]['table'] . '.' . $field . ','; + $sql .= ' ' . $this->relationships[$rel]['tableAlias'] . '.' . $field . ','; } else { $sql .= " $sort,"; }