public function group(array $fields = array()) { $groupBy = array(); foreach ($fields as $field) { $this->group[] = $field; } return $this; }