IFNULL
Symfony2 Doctrine Query Builder 中的 SQL是如何实现的?假设我有这个查询:
select * from ticket order by IFNULL(modified_date, '2000-01-01') DESC, created_date DESC
我有这个 DQL:
$this->qb->select("t, c.name")
->from("Ticket", "t");
$this->qb->orderBy("t.modifiedDate", "DESC");
$this->qb->addOrderBy("t.createdDate", "DESC");
现在如何添加 IFNULL 部分?