src/ORM/Queries/SQLSelect.php
public function addGroupBy($groupby)
    {
        if (is_array($groupby)) {
            $this->groupby = array_merge($this->groupby, $groupby);
        } elseif (!empty($groupby)) {
            $this->groupby[] = $groupby;
        }

        return $this;
    }
public function addGroupBy($groupby)
    {
        if (is_array($groupby)) {
            $this->groupby = array_merge($this->groupby, $groupby);
        } elseif (!empty($groupby)) {
            $this->groupby[] = $groupby;
        }

        return $this;
    }
public function addGroupBy ( $ groupby ) { if ( is_array ( $ groupby ) ) { $ this -> groupby = array_merge ( $ this -> groupby , $ groupby ) ; } elseif ( ! empty ( $ groupby ) ) { $ this -> groupby [ ] = $ groupby ; } return $ this ; }
Add a GROUP BY clause.

@param string|array $groupby Escaped SQL statement
@return $this Self reference
Add a GROUP BY clause .