public function group($query)
    {
        $clause = '';

        if (!empty($query->group)) {
            $columns = AnDomainQueryHelper::parseColumns($query, $query->group);
            $clause = ' GROUP BY '.implode(' , ', $columns);
        }

        return $clause;
    }
public function group($query)
    {
        $clause = '';

        if (!empty($query->group)) {
            $columns = AnDomainQueryHelper::parseColumns($query, $query->group);
            $clause = ' GROUP BY '.implode(' , ', $columns);
        }

        return $clause;
    }
public function group ( $ query ) { $ clause = '' ; if ( ! empty ( $ query -> group ) ) { $ columns = AnDomainQueryHelper :: parseColumns ( $ query , $ query -> group ) ; $ clause = ' GROUP BY ' . implode ( ' , ' , $ columns ) ; } return $ clause ; }
Return the group clause.

@return string
Return the group clause .