Bluz\Db\Query\Select::groupBy
Specifies a grouping over the results of the query.
Replaces any previously specified groupings, if any. Example <code> $sb = new Select(); $sb ->select('u.name') ->from('users', 'u') ->groupBy('u.id'); </code>
Signature
public function groupBy(array
$groupBy )
Parameters
$groupBy
— array- the grouping expression
Returns
- Select
- instance