News for hackers. Stuff that matters.
Re:ORM is an anti-pattern by Daishiman on Saturday September 17, 2011 @04:08PM (#3008830)
The problem is that, plainly, your ORM sucks. Serious ORMS allow you to inject custom SQL and still return objects; many can just take the result of a plain SQL query and map it to objects as you please.

Really, there are good and bad ORMs. Bad ORMs produce the results you mention. Good ones are much more adaptable.

Re:ORM is an anti-pattern by dkubb on Saturday September 17, 2011 @09:51PM (#3009264)
The DataMapper ORM allows you to use SQL but still return domain objects: http://rubydoc.info/github/datamapper/dm-ar-finders/master/D...

Maybe the gp doesn't know about it or chooses not to use it, but it exists.

Re:ORM is an anti-pattern by apsurd on Sunday September 18, 2011 @12:36AM (#3009504)
thanks for this! You are right I had no idea this existed. Just goes to show I really should read the source over depending on datamapper.org/docs/ too much.