martin-georgiev / postgresql-for-doctrine

PostgreSQL enhancements for Doctrine. Provides support for advanced data types (json, jssnb, arrays), text search, array operators and jsonb specific functions.

Home Page:https://packagist.org/packages/martin-georgiev/postgresql-for-doctrine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

array_agg doesn't support ORDER BY

olek07 opened this issue · comments

When I use the function like this array_agg(d.startDate ORDER BY d.startDate DESC), I get en error
"[Syntax Error] line 0, col 64: Error: Expected Doctrine\ORM\Query\Lexer::T_CLOSE_PARENTHESIS, got 'ORDER'"
Please fix it.

Hi @martin-georgiev,

Is this something that can be fixed?