Hacker News new | ask | show | jobs
by mattmanser 2646 days ago
ORMs are great for simple stuff, but there's nothing stopping you from switching to raw SQL for more complex stuff.

Why can't you do both? I do it all the time.

1 comments

In an ORM, the returned objects from even raw SQL is still ORM objects (database-aware objects). I prefer keeping the business logic layer distinct from the data access layer, so I prefer for the return objects to be pure business objects. Maybe I'm being too anal and forcing a distinction where there doesn't need one?