src/Query/Query.php
/**
   * Apply a grouping to aggregation
   * @arg array $group an array of grouping field names
   * @return object this object
   */
Apply a grouping to aggregation
@arg array $group an array of grouping field names
@return object this object
Apply a grouping to aggregation @arg array $group an array of grouping field names @return object this object
public function groupBy( array $group ) {
    $group = array_map(function($n) { return "@$n"; }, $group);
    $group = implode(' ', array_merge([count($group)], $group));
    $this->groupBy = "GROUPBY $group";
    return $this;
  }
public function groupBy ( array $ group ) { $ group = array_map ( function ( $ n ) { return " @ $ n " ; } , $ group ) ; $ group = implode ( ' ' , array_merge ( [ count ( $ group ) ] , $ group ) ) ; $ this -> groupBy = " GROUPBY  $ group " ; return $ this ; }
Apply a grouping to aggregation
 @arg array $group an array of grouping field names
 @return object this object
Apply a grouping to aggregation @arg array $group an array of grouping field names @return object this object