Using a 'case when' in a Doctrine select statement

后端 未结 5 1164
终归单人心
终归单人心 2021-01-18 17:28

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         


        
5条回答
  •  臣服心动
    2021-01-18 17:42

    Case statements do appear to have been added to doctrine at some point: https://github.com/doctrine/orm-documentation/commit/189c729f15d2fafecf92662cad9553c2ec3dccd7#diff-0

提交回复
热议问题