[PR #604] Added support for string functions in OrderBy clause #8440

Closed
opened 2026-01-22 15:59:56 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/604

State: closed
Merged: No


Extended the OrderBy parser to support string functions directly in the Order By clause so you can do things like:

ORDER BY LENGTH(a.somefield)

or a typical use case with the doctrineExtensions

ORDER BY FIELD(a.somefield, 5, 10, 8, 12)

**Original Pull Request:** https://github.com/doctrine/orm/pull/604 **State:** closed **Merged:** No --- Extended the OrderBy parser to support string functions directly in the `Order By` clause so you can do things like: `ORDER BY LENGTH(a.somefield)` or a typical use case with the doctrineExtensions `ORDER BY FIELD(a.somefield, 5, 10, 8, 12)`
admin added the pull-request label 2026-01-22 15:59:56 +01:00
admin closed this issue 2026-01-22 15:59:57 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#8440