IFNULL in Symfony2 Doctrine query builder

前端 未结 1 1800
鱼传尺愫
鱼传尺愫 2021-01-06 23:08

How is the IFNULL of SQL implemented in Symfony2 Doctrine Query Builder? Let\'s say I have this query:

select * from ticket order by IFNULL(modif

相关标签:
1条回答
  • 2021-01-07 00:03

    Ok, done some research and found that there is no such implementation.

    Googled a little more, and got that this kind of missing features can be added to Doctrine as own functions.

    Found this extension on GitHub I think this will work. But wonder if ther would be any problems or conflicts with Doctrine versions...

    0 讨论(0)
提交回复
热议问题