. */ /** * DeleteStatement ::= DeleteClause [WhereClause] * * @author Guilherme Blanco * @author Janne Vanhala * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @link http://www.phpdoctrine.org * @since 2.0 * @version $Revision$ */ class Doctrine_ORM_Query_Parser_DeleteStatement extends Doctrine_ORM_Query_ParserRule { public function syntax() { // DeleteStatement ::= DeleteClause [WhereClause] $AST = $this->AST('DeleteStatement'); $AST->setDeleteClause($this->parse('DeleteClause')); if ($this->_isNextToken(Doctrine_ORM_Query_Token::T_WHERE)) { $AST->setWhereClause($this->parse('WhereClause')); } // Return AST node return $AST; } }