From 936d442cc0424fc2dfe1bfc1cd7d8c2da908fa20 Mon Sep 17 00:00:00 2001 From: zYne Date: Wed, 16 May 2007 21:51:23 +0000 Subject: [PATCH] --- lib/Doctrine/Relation/Association/Self.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Doctrine/Relation/Association/Self.php b/lib/Doctrine/Relation/Association/Self.php index 850959ced..358b9c561 100644 --- a/lib/Doctrine/Relation/Association/Self.php +++ b/lib/Doctrine/Relation/Association/Self.php @@ -93,9 +93,9 @@ class Doctrine_Relation_Association_Self extends Doctrine_Relation_Association ' = ?'; $q->select('{'.$tableName.'.*}, {'.$assocTable.'.*}') - ->from($tableName.' INNER JOIN '.$assocTable.' ON '. - $tableName.'.'.$identifier.' = '.$assocTable.'.'.$this->getLocal().' OR '. - $tableName.'.'.$identifier.' = '.$assocTable.'.'.$this->getForeign() + ->from($tableName . ' INNER JOIN '.$assocTable.' ON '. + $tableName . '.' . $identifier . ' = ' . $assocTable . '.' . $this->getLocal() . ' OR ' . + $tableName . '.' . $identifier . ' = ' . $assocTable . '.' . $this->getForeign() ) ->where($tableName.'.'.$identifier.' IN ('.$sub.') OR '. $tableName.'.'.$identifier.' IN ('.$sub2.')'