How about hybrid sql-builder / data grouper solution?
Not limited to ORM methods - get the full power of SQL instead. Not string concatenation - get the full power of the language to build queries. Also, the ability to get join results in either flat or grouped form.
For example https://github.com/doxout/anydb-sql (shameless plug)