/**
* Sets group clause, more calls rewrite old value.
* @param string
* @return self
*/
public function group($columns)
{
$this->emptyResultSet();
if (func_num_args() === 2 && strpos($columns, '?') === FALSE) {
trigger_error('Calling ' . __METHOD__ . '() with second argument is deprecated; use $selection->having() instead.', E_USER_DEPRECATED);
$this->having(func_get_arg(1));
$this->sqlBuilder->setGroup($columns);
} else {
call_user_func_array(array($this->sqlBuilder, 'setGroup'), func_get_args());
}
return $this;
}