framework/db/Query.php
public function andFilterHaving(array $condition)
    {
        $condition = $this->filterCondition($condition);
        if ($condition !== []) {
            $this->andHaving($condition);
        }

        return $this;
    }
public function andFilterHaving(array $condition)
    {
        $condition = $this->filterCondition($condition);
        if ($condition !== []) {
            $this->andHaving($condition);
        }

        return $this;
    }
Adds an additional HAVING condition to the existing one but ignores [[isEmpty()|empty operands]].
The new condition and the existing one will be joined using the `AND` operator.

This method is similar to [[andHaving()]]. The main difference is that this method will
remove [[isEmpty()|empty query operands]]. As a result, this method is best suited
for building query conditions based on filter values entered by users.

@param array $condition the new HAVING condition. Please refer to [[having()]]
on how to specify this parameter.
@return $this the query object itself
@see filterHaving()
@see orFilterHaving()
@since 2.0.11