(No version information available, might only be in Git)
TableSelect::groupBy — Set select grouping criteria
Sets a grouping criteria for the result set.
sort_expr
The grouping criteria.
A TableSelect object.
Example #1 mysql_xdevapi\TableSelect::groupBy() example
<?php
$res = $table->select('count(b) as bb')->groupBy('b')->orderBy('b asc')->execute();
?>