doctrine/doctrine2 — pull request #151 by beberlei (2011-10-16 17:25:08+00:00)
Title: DDC-1385

This branch does multiple things:

1. Fix how INDEX BY works with mixed results. The index is now on the top level, not inside the mixed result.
2. Add support for INDEX BY in scalar only queries.

SELECT u.id, u.name FROM User u INDEX BY u.id

Please code review.