lithium\data\source\Database::having PHP Method

having() public method

Conversion rules are as follows: - If $key is numeric and $value is a string, $value is treated as a literal SQL fragment and returned.
public having ( string | array $conditions, object $context, array $options = [] ) : string
$conditions string | array The havings for this query.
$context object The current `lithium\data\model\Query` instance.
$options array Available options are: - `'prepend'` _boolean|string_: The string to prepend or `false` for no prepending. Defaults to `'HAVING'`.
return string Returns the `HAVING` clause of an SQL query.
    public function having($conditions, $context, array $options = array())
    {
        $defaults = array('prepend' => 'HAVING');
        $options += $defaults;
        return $this->_conditions($conditions, $context, $options);
    }