1
0
mirror of synced 2024-12-14 15:16:04 +03:00
This commit is contained in:
zYne 2007-04-26 18:06:16 +00:00
parent e81891e310
commit 3b48b7911c

View File

@ -60,14 +60,16 @@ class Doctrine_Query_Having extends Doctrine_Query_Condition
} else {
if ( ! is_numeric($func)) {
$a = explode('.', $func);
$field = array_pop($a);
if (count($a) > 1) {
$field = array_pop($a);
$reference = implode('.', $a);
$table = $this->query->load($reference, false);
$field = $table->getColumnName($field);
$func = $this->query->getTableAlias($reference) . '.' . $field;
} else {
$func = $this->query->getAggregateAlias($field);
$field = end($a);
$func = $this->query->getAggregateAlias($field);
}
return $func;
} else {