Commit 04276090 authored by pookey's avatar pookey

fixes #732 - yes, it's a nasty hack, but we have a new parser on the way

parent 0061bc82
......@@ -93,6 +93,10 @@ class Doctrine_Query_Having extends Doctrine_Query_Condition
$operator = array_shift($tokens);
$value = implode(' ', $tokens);
$part .= ' ' . $operator . ' ' . $value;
// check the RHS for aggregate functions
if (strpos($value, '(') !== false) {
$value = $this->parseAggregateFunction($value);
}
return $part;
}
}
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