This commit is contained in:
parent
2291272ebf
commit
936d442cc0
@ -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.')'
|
||||||
|
Loading…
Reference in New Issue
Block a user