framework/db/Query.php
public function orHaving($condition, $params = [])
    {
        if ($this->having === null) {
            $this->having = $condition;
        } else {
            $this->having = ['or', $this->having, $condition];
        }
        $this->addParams($params);
        return $this;
    }
public function orHaving($condition, $params = [])
    {
        if ($this->having === null) {
            $this->having = $condition;
        } else {
            $this->having = ['or', $this->having, $condition];
        }
        $this->addParams($params);
        return $this;
    }
Adds an additional HAVING condition to the existing one.
The new condition and the existing one will be joined using the `OR` operator.
@param string|array|ExpressionInterface $condition the new HAVING condition. Please refer to [[where()]]
on how to specify this parameter.
@param array $params the parameters (name => value) to be bound to the query.
@return $this the query object itself
@see having()
@see andHaving()