1
0
mirror of synced 2024-12-14 15:16:04 +03:00
This commit is contained in:
zYne 2007-05-16 21:51:23 +00:00
parent 2291272ebf
commit 936d442cc0

View File

@ -93,9 +93,9 @@ class Doctrine_Relation_Association_Self extends Doctrine_Relation_Association
' = ?'; ' = ?';
$q->select('{'.$tableName.'.*}, {'.$assocTable.'.*}') $q->select('{'.$tableName.'.*}, {'.$assocTable.'.*}')
->from($tableName.' INNER JOIN '.$assocTable.' ON '. ->from($tableName . ' INNER JOIN '.$assocTable.' ON '.
$tableName.'.'.$identifier.' = '.$assocTable.'.'.$this->getLocal().' OR '. $tableName . '.' . $identifier . ' = ' . $assocTable . '.' . $this->getLocal() . ' OR ' .
$tableName.'.'.$identifier.' = '.$assocTable.'.'.$this->getForeign() $tableName . '.' . $identifier . ' = ' . $assocTable . '.' . $this->getForeign()
) )
->where($tableName.'.'.$identifier.' IN ('.$sub.') OR '. ->where($tableName.'.'.$identifier.' IN ('.$sub.') OR '.
$tableName.'.'.$identifier.' IN ('.$sub2.')' $tableName.'.'.$identifier.' IN ('.$sub2.')'