@@ -485,7 +485,7 @@ When using aggregate functions like ``count`` and ``sum`` you may want to use
485485        'count' => $query->func()->count('view_count'), 
486486        'published_date' => 'DATE(created)' 
487487    ]) 
488-     ->group ('published_date') 
488+     ->groupBy ('published_date') 
489489    ->having(['count >' => 3]); 
490490
491491Case Statements
@@ -1145,7 +1145,7 @@ expression objects to add snippets of SQL to your queries::
11451145    $query->select(['two' => $expr]); 
11461146
11471147``Expression `` objects can be used with any query builder methods like
1148- ``where() ``, ``limit() ``, ``group ()select() `` and many other methods.
1148+ ``where() ``, ``limit() ``, ``groupBy ()select() `` and many other methods.
11491149
11501150.. warning ::
11511151
@@ -1227,7 +1227,7 @@ this query for retrieving article ids and their comments count::
12271227    $query = $articles->find(); 
12281228    $query->select(['Articles.id', $query->func()->count('Comments.id')]) 
12291229        ->matching('Comments') 
1230-         ->group (['Articles.id']); 
1230+         ->groupBy (['Articles.id']); 
12311231    $total = $query->count(); 
12321232
12331233After counting, the query can still be used for fetching the associated
@@ -1758,7 +1758,7 @@ To build that query with the ORM query builder we would use::
17581758            'order_count' => $q->func()->count('*'), 
17591759            'customer_id' 
17601760        ]) 
1761-         ->group ('customer_id'); 
1761+         ->groupBy ('customer_id'); 
17621762
17631763        // Attach the new query to the table expression 
17641764        return $cte 
0 commit comments