我有一個選擇查詢我想和原則執行:使用「的情況下,當」一個主義select語句
$resultset = Doctrine_Query::create()
->select("t.code, t.description, case when t.id_outcome = 1 then 1 else 0 end as in_progress")
->from('LuOutcome t')
->orderBy('t.rank')
->fetchArray();
它barfs的「案例」。文件沒有提到它是可能的(或不)。
我想知道教義是否缺乏這樣做的能力。如果是這樣,這是一個相當大的疏忽。有誰知道解決方法?
請一個PHP代碼添加到這個問題 – tzup 2009-10-14 08:48:15
DONE ...至少15個字符: -/ – dland 2009-10-16 21:45:50