[PR #1397] Add Expr::concat support for multiple arguments #9455

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

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

State: closed
Merged: Yes


DQL CONCAT function support variable number of arguments (2+) since version 2.4.0.

The Expr class, on the other hand, is still limited to 2 arguments, and require multiple call to achive a similar result (see this SO question). I've improved Expr implementation to support variable number of arguments in a backward compatible way.

Please, consider backporting to 2.4 branch if you plan to release other versions, since 2.5 introduce many features and may not be possible to easily upgrade. I may be wrong, though.

**Original Pull Request:** https://github.com/doctrine/orm/pull/1397 **State:** closed **Merged:** Yes --- DQL CONCAT function support variable number of arguments (2+) since version `2.4.0`. The `Expr` class, on the other hand, is still limited to 2 arguments, and require multiple call to achive a similar result (see [this SO question](http://stackoverflow.com/questions/22169324/concat-three-or-more-fields-in-doctrine/29913780)). I've improved `Expr` implementation to support variable number of arguments in a backward compatible way. Please, consider backporting to `2.4` branch if you plan to release other versions, since `2.5` introduce many features and may not be possible to easily upgrade. I may be wrong, though.
admin added the pull-request label 2026-01-22 16:04:22 +01:00
admin closed this issue 2026-01-22 16:04:22 +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#9455