Groups the result set by the specified field.
$field: The field on which to group. This should be the field as aliased.
Drupal\Core\Database\Query\SelectInterface The called object.
Overrides SelectInterface::groupBy
public function groupBy($field) {
$this->query
->groupBy($field);
return $this;
}