ComparisonOperator(); if ($this->_isSubquery()) { $this->_parser->match('('); $this->Subselect(); $this->_parser->match(')'); } else { switch ($this->_parser->lookahead['type']) { case Doctrine_Query_Token::T_ALL: case Doctrine_Query_Token::T_SOME: case Doctrine_Query_Token::T_NONE: $this->QuantifiedExpression(); break; default: $this->Expression(); } } } }