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

public method

Set and get having.

Parameters

  • mixed $having

    String or array to append to existing having.

Returns

string|Query

Either the currrent having when $having is null or the query itself when setting having.

Source

	public function having($having = null) {
		if (!$having) {
			return $this->_config['having'];
		}
		$this->_config['having'] = array_merge(
			(array) $this->_config['having'], (array) $having
		);
		return $this;
	}