The underlying problem is one of O-R impedance mismatch. Going full SQL and getting rid of the ORM is a possible answer, but it has tradeoffs and is not a silver bullet. It might mean re-creating from scratch an in-house, bug-ridden ORM, or ditching OOP idioms from your language, or both. The author of TFA seems to be going through one of the stages described in "ORM is the Vietnam of Computer Science", an article th…
http://blogs.tedneward.com/post/the-vietnam-of-computer-scie...
Edit: huh, seems to have got truncated over the years. Here's an archive link
https://web.archive.org/web/20160120004603/https://blogs.ted...