Doctrine: use user defined function in ORDERBY
Sección: Programación
Creado: 15-04-19 (Actualizado: 06-05-19)
What I want to achieve is something like this:
SELECT * FROM users ORDER BY (IF ranking IS NULL, 9999, ranking) ASC So, I need an if in my orderby. But it seems that user defined functions (I cr...
https://stackoverflow.com/questions/23559614/doctrine-use-user-defined-function-in-orderby