What “type” do I specify in addCase to return a column?
I'm trying to get a query working using a case statement, and can't figure out how to get the case to return a column value instead of a constant. I have the query working perfectly, except that the column names I'm providing for the results are being quoted or otherwise mishandled by Cake or maybe PDO somewhere down in a layer that I can't dig my way through. I got as far down as bindValue, but none of the documentation I encountered along the way tells me how to do this. I have found this example comment: $statement->bindValue(1, 'a title'); $statement->bindValue(2, 5, PDO::INT); $statement-