I\'m trying to use the MySQL FIELD function in an order by clause in a query. I\'m assuming that Doctrine 2 doesn\'t support the FIELD function out of the box - is that true
In case that the field that you want to "order by" is an ENUM data type, then ORDER BY will work in the order in which the values were defined for that ENUM field.
For example, I had a filed defined as enum('n','pe','o','ap','c') that was giving a weird ordering. The ordering got fixed after updating the enum to: enum('ap','c','n','o','pe')