IFNULL no Symfony2 Doctrine query builder
Como está oIFNULL
do SQL implementado no Symfony2 Doctrine Query Builder? Digamos que eu tenho esta consulta:
select * from ticket order by IFNULL(modified_date, '2000-01-01') DESC, created_date DESC
Eu tenho este DQL:
$this->qb->select("t, c.name")
->from("Ticket", "t");
$this->qb->orderBy("t.modifiedDate", "DESC");
$this->qb->addOrderBy("t.createdDate", "DESC");
Agora como adicionar a parte IFNULL?