Doctrine 1

Causing ORA-01791 when try to sort on relation field and use limit in query to Oracle DB