doctrine/doctrine2 — pull request #864 by curry684 (2013-11-29 13:38:15+00:00)
Title: Updated parser to support aggegrate functions in null comparisons

Parser didn't support syntax like "SELECT i FROM entity i JOIN i.second s GROUP BY i HAVING max(s.something) IS NULL" which should be perfectly valid. Changed isAggregateFunction to support parameterless call which makes it consistent with isFunction.