1

I am trying to get a random row from my table. I found this SQL example:

SELECT column FROM table
ORDER BY RAND()
LIMIT 1

Is it possible to do it in pure DQL ?

Sam
  • 1,557
  • 3
  • 26
  • 51
  • 1
    Possible duplicate: https://stackoverflow.com/questions/10762538/how-to-select-randomly-with-doctrine – iiirxs Sep 05 '18 at 17:51
  • 1
    Possible duplicate of [How to select randomly with doctrine](https://stackoverflow.com/questions/10762538/how-to-select-randomly-with-doctrine) – M Khalid Junaid Sep 12 '18 at 05:43

0 Answers0