public function having($having)
    {
        if (!(func_num_args() == 1 && $having instanceof CompositeExpression)) {
            $having = new CompositeExpression(CompositeExpression::TYPE_AND, func_get_args());
        }

        return $this->add('having', $having);
    }
public function having($having)
    {
        if (!(func_num_args() == 1 && $having instanceof CompositeExpression)) {
            $having = new CompositeExpression(CompositeExpression::TYPE_AND, func_get_args());
        }

        return $this->add('having', $having);
    }
public function having ( $ having ) { if ( ! ( func_num_args ( ) == 1 && $ having instanceof CompositeExpression ) ) { $ having = new CompositeExpression ( CompositeExpression :: TYPE_AND , func_get_args ( ) ) ; } return $ this -> add ( 'having' , $ having ) ; }
Specifies a restriction over the groups of the query.
Replaces any previous having restrictions, if any.

@param mixed $having The restriction over the groups.

@return \Doctrine\DBAL\Query\QueryBuilder This QueryBuilder instance.
Specifies a restriction over the groups of the query . Replaces any previous having restrictions if any .