I am working on a project which is built using Symfony and Doctrine, however I am still new to the whole setup.
Cut a long story short I have need to order a result set by the order of the array used in the select.
Which I believe could be done using the FIELD() function, however from my investigations it doesn't look like its possible using Doctrine.
For example, I am stumped as how I can utilise FIELD() in a query like below (if its even possible):
return $this
->createQueryBuilder('a')
->where('a.identifier IN (:identifiers)')
->setParameter('identifiers',$identifiers)
->getQuery()
->getResult();