Doctrine\ORM\Query\Parser::EmptyCollectionComparisonExpression PHP Method

EmptyCollectionComparisonExpression() public method

EmptyCollectionComparisonExpression ::= CollectionValuedPathExpression "IS" ["NOT"] "EMPTY"
public EmptyCollectionComparisonExpression ( ) : Doctrine\ORM\Query\AST\EmptyCollectionComparisonExpression
return Doctrine\ORM\Query\AST\EmptyCollectionComparisonExpression
    public function EmptyCollectionComparisonExpression()
    {
        $emptyColletionCompExpr = new AST\EmptyCollectionComparisonExpression(
            $this->CollectionValuedPathExpression()
        );
        $this->match(Lexer::T_IS);

        if ($this->_lexer->isNextToken(Lexer::T_NOT)) {
            $this->match(Lexer::T_NOT);
            $emptyColletionCompExpr->not = true;
        }

        $this->match(Lexer::T_EMPTY);

        return $emptyColletionCompExpr;
    }
Parser