[PR #8277] Fix OrderByItem parser to proceed with SimpleArithmetic expression before function #10895

Closed
opened 2026-01-22 16:09:02 +01:00 by admin · 0 comments
Owner

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

State: closed
Merged: Yes


Hi,

Fix #7626

There is parser bug for OrderByItem(), where a function is detected before a SimpleArithmeticExpression while it should be the reverse: simple arithmetic expressions can start with a function too, and thus they should be matched first if present.

This fix enables the use of expression in sorting and with window functions.

**Original Pull Request:** https://github.com/doctrine/orm/pull/8277 **State:** closed **Merged:** Yes --- Hi, Fix #7626 There is parser bug for `OrderByItem()`, where a **function** is detected before a **SimpleArithmeticExpression** while it should be the reverse: simple arithmetic expressions can start with a **function** too, and thus they should be matched first if present. This fix enables the use of expression in sorting and with window functions.
admin added the pull-request label 2026-01-22 16:09:02 +01:00
admin closed this issue 2026-01-22 16:09:02 +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#10895