> If you are having trouble, get the SQL working first, and then figure out how to make your ORM generate that SQL.
This, specifically, is very good advice: using the ORM as a tool to implement a SQL-first solution. And not just good advice for beginners.