Details
-
Type:
New Feature
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: Git Master
-
Fix Version/s: None
-
Component/s: DQL, Mapping Drivers, ORM
-
Security Level: All
-
Labels:None
Description
I need some way to select a random row from a table. There was something like "ORDER BY RAND()" in SQL but I can't really find anything like that for Doctrine.
Doctrine allows you to execute SQL and hydrate objects from that using the Native Query API as described in the documentation.