Bluz\Db\Query\Select::andHaving PHP Méthode

andHaving() public méthode

Adds a restriction over the groups of the query, forming a logical conjunction with any existing having restrictions
public andHaving ( variadic $condition ) : Select
$condition variadic the query restriction predicates
Résultat Select
    public function andHaving(...$condition)
    {
        $condition = $this->prepareCondition($condition);
        $having = $this->getQueryPart('having');
        if ($having instanceof CompositeBuilder && $having->getType() == 'AND') {
            $having->add($condition);
        } else {
            $having = new CompositeBuilder([$having, $condition]);
        }
        return $this->addQueryPart('having', $having, false);
    }