doctrine/doctrine2 — pull request #277 by medinadato (2012-02-10 17:02:28+00:00)
Title: Update lib/Doctrine/ORM/Query/AST/GeneralCaseExpression.php

Changed to make the CASE EXPRESSION uses strings into DQL's.

e.g.

$source = $this->em->createQueryBuilder()
->select('m')
->addSelect("CASE WHEN (date >= newDate) THEN 'Active' ELSE 'Inactive' END status")
->from('sys:Mask', 'm')
->orderBy('status', 'ASC');