Commit 936d442c authored by zYne's avatar zYne

--no commit message

--no commit message
parent 2291272e
...@@ -93,9 +93,9 @@ class Doctrine_Relation_Association_Self extends Doctrine_Relation_Association ...@@ -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.')'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment