> actually querying with an ORM is usually terrible
What do you think of stuff like Hibernate Query Language? I'm currently working on a project that might use DQL (a PHP variation) to get our snarl of tables under control.
What do you think of stuff like Hibernate Query Language? I'm currently working on a project that might use DQL (a PHP variation) to get our snarl of tables under control.
The whole point of ORM is that it is database agnostic. Given how different databases twist the SQL standard and provide a whole raft of proprietary extensions you need an abstracted query layer.
Whether you give it a name like HQL or don't there will always be some layer.
I agree with Conery, choose the components that will compose your application wisely and then embrace those choices and use them to their fullest.
EDIT: I inherited this system. I'd never use an ORM by choice.