Re:The Last PHP PDO Library You Will Ever Need
by wvenable on Friday November 04, 2011 @12:10PM
(#3196571)
I disagree. Yes, this should be refactored and placed in a model; but that would be something like Clients::getReadMetrics() that would contain the same SQL. I don't see that heading towards a full ORM or even remotely like SQL generation.
I'm not saying there aren't downsides to ORMs, but the counter-arguments to SQL in your controller are pretty obvious.