what i need
i need sort alias.
symfony code
$qb->addSelect("(CASE WHEN (priority LIKE '%High%') THEN 1
WHEN (priority LIKE '%Medium%') THEN 2
ELSE 3 END) AS prioritys ");
sorting code
priority column name of view/table.
prioritys is alias.
$qb->orderBy('priority','ASC'); //works because here im accessing column from table/view.
$qb->orderBy('prioritys','ASC'); //doesnot works.
Error on using Alias
Error : [Semantical Error] line 0, col 173 near 'prioritys ASC,': Error: 'prioritys' is not defined.
any suggestion is most welcome.