lithium\data\model\Query::group()

public method

Set and get method for the Query group config setting.

Parameters

  • string|array|null $group

Returns

array|null|\lithium\data\Query

Source

	public function group($group = null) {
		if ($group) {
			$this->_config['group'] = $group;
			return $this;
		}
		if ($group === false) {
			$this->_config['group'] = null;
			return $this;
		}
		return $this->_config['group'];
	}