Doctrine 2 - ORM

unable to use scalar function when a scalar expression is expected