Doctrine 2 - ORM

INDEX BY doesn't work for selects with scalars only