rekalogika/doctrine-advanced-group-by
Allows the use of the more complex GROUP BY
clauses in Doctrine ORM.
These include GROUPING SETS
, CUBE
, and ROLLUP
.
Sections
📄️ Introduction
Allows the use of the more complex GROUP BY clauses in Doctrine ORM.
📄️ GROUP BY Usage
We add the advanced GROUP BY functionality to Doctrine ORM queries by using an
📄️ Flattening
It is possible to flatten a GroupBy object into another instance of GroupBy
📄️ GROUPING() Function
If you are using ROLLUP, CUBE, or GROUPING SETS, you also probably need to
📄️ Visitor
Also available is a visitor that can be used to traverse the GroupBy