Using a 'case when' in a Doctrine select statement

后端 未结 5 1201
终归单人心
终归单人心 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:44

    The BNF grammar for the Doctrine Query Language doesn't seem to contain anything related to a CASE construct.

提交回复
热议问题