We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6727d1e commit 33c09f4Copy full SHA for 33c09f4
1 file changed
Resources/doc/columns_configuration/annotations/dql_function.md
@@ -103,3 +103,15 @@ class Article {
103
`sales.name:otherFunction:string` turns into `otherFunction(_sales.name, 'string')` in DQL
104
105
`other:count:distinct` turns into `count(DISTINCT _a.other)` in DQL
106
+
107
108
+## Using GridBuilder
109
+```php
110
+<?php
111
+ ...
112
+ /* Example BlogPost has many Comments */
113
+ /** @var GridBuilder $builder */
114
+ $builder
115
+ ->setGroupBy('id') //important to setGroupBy otherwise the column will not aggregate
116
+ ->add('comments.id:count', 'text' ['title' => 'Number of Comments']);
117
+```
0 commit comments