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.
Activity
Benjamin Eberlei
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Won't Fix [ 2 ] |
Benjamin Eberlei
made changes -
| Workflow | jira [ 12255 ] | jira-feedback [ 14704 ] |
Benjamin Eberlei
made changes -
| Workflow | jira-feedback [ 14704 ] | jira-feedback2 [ 16568 ] |
Benjamin Eberlei
made changes -
| Workflow | jira-feedback2 [ 16568 ] | jira-feedback3 [ 18821 ] |
This list may be incomplete, as errors occurred whilst retrieving source from linked applications:
- Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DDC-950, expand=changesets[-21:-1].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)
Doctrine allows you to execute SQL and hydrate objects from that using the Native Query API as described in the documentation.