Doctrine 2 - ORM

[GH-645] Fixes Oracle Pagination bug when ordering is present (e.g. Oracle subquery ordering)