eZ\Publish\Core\Persistence\Doctrine\SelectDoctrineQuery::having PHP Method

having() public method

You can call having multiple times. Each call will add an expression with a logical and. Example: $q->select( '*' )->from( 'table' )->groupBy( 'id' ) ->having( $q->expr->eq('id',1) );
public having ( ) : eZ\Publish\Core\Persistence\Database\SelectQuery
return eZ\Publish\Core\Persistence\Database\SelectQuery a pointer to $this
    public function having()
    {
        $args = func_get_args();
        if (count($args) === 0) {
            throw new QueryException('No arguments given');
        }
        foreach ($args as $whereCondition) {
            $this->parts['having'][] = $whereCondition;
        }
        return $this;
    }