1
0
mirror of synced 2025-01-07 09:37:11 +03:00
This commit is contained in:
zYne 2006-11-20 20:28:59 +00:00
parent fb8498e0bd
commit 5f1a4074a0

View File

@ -530,7 +530,11 @@ class Doctrine_Query extends Doctrine_Hydrate implements Countable {
} }
$field = $this->getShortAlias($table->getTableName()) . '.' . $table->getIdentifier(); $field = $this->getShortAlias($table->getTableName()) . '.' . $table->getIdentifier();
// only append the subquery if it actually contains something
if($subquery !== '')
array_unshift($this->parts['where'], $field. ' IN (' . $subquery . ')'); array_unshift($this->parts['where'], $field. ' IN (' . $subquery . ')');
$modifyLimit = false; $modifyLimit = false;
} }
} }