I have a select query I\'d like to perform with Doctrine:
$resultset = Doctrine_Query::create()
->select(\"t.code, t.description, case when t.id_outc
As mentioned by adavea, Doctrine now has added support for CASE expressions. You can do something like
$resultset = Doctrine_Query::create()
->select("t.code, t.description")
->addSelect("CASE WHEN(t.id_outcome = 1) THEN 1 ELSE 0 END as in_progress")
->from('LuOutcome t')
->orderBy('t.rank')
->fetchArray();
Hope this might help someone, thanks!