public function groupBy() {
        $fields = func_get_args();

        if (is_array($fields[0])) {
            $fields = $fields[0];
        }

        $this->_groupBy = array_unique(array_merge($this->_groupBy, $fields));

        return $this;
    }
public function groupBy() {
        $fields = func_get_args();

        if (is_array($fields[0])) {
            $fields = $fields[0];
        }

        $this->_groupBy = array_unique(array_merge($this->_groupBy, $fields));

        return $this;
    }
public function groupBy ( ) { $ fields = func_get_args ( ) ; if ( is_array ( $ fields [ 0 ] ) ) { $ fields = $ fields [ 0 ] ; } $ this -> _groupBy = array_unique ( array_merge ( $ this -> _groupBy , $ fields ) ) ; return $ this ; }
Set what fields to group on.

@return $this
Set what fields to group on .