mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
2.6.1 StringPrimary no longer accepts aggregate functions as argument(AVG, SUM, COUNT, MIN and MAX) #6009
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @NothingWeAre on GitHub (Jul 2, 2018).
Originally assigned to: @Majkl578 on GitHub.
BC Break Report
Summary
After upgrading from 2.5.14 to 2.6.1 StringPrimary no longer accepts aggregate functions as argument(AVG, SUM, COUNT, MIN and MAX).
Which affects any functions depending on StringPrimary, for example CONCAT
Previous behavior
CONCAT(teable.field1, MAX(table.field2))=> '{text from field1}{maximum value of field2}'Current behavior
CONCAT(teable.field1, MAX(table.field2))=> ERROR: Expected StateFieldPathExpression | string | InputParameter | FunctionsReturningStrings | AggregateExpression, got 'MAX'How to reproduce
pass any aggregate function to CONCAT (for example) as argument
PS
Old
StringPrimaryfunction looked like:while new one missing part responsible for accepting aggregate expressions:
Creating this as separate issue from #7205, because this concerns any function relient on StringPrimary