Doctrine 2 - ORM

using aliases from select clause in having clause does not work