From 5ea8861bf3ccdd10cfbbe0352b533ad537bb2b09 Mon Sep 17 00:00:00 2001 From: ebernhardson Date: Tue, 13 Dec 2011 10:36:14 -0800 Subject: [PATCH] replace non-existant constant Lexer::T_ABS --- en/reference/dql-doctrine-query-language.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/en/reference/dql-doctrine-query-language.rst b/en/reference/dql-doctrine-query-language.rst index 2e7282e67..9886aed29 100644 --- a/en/reference/dql-doctrine-query-language.rst +++ b/en/reference/dql-doctrine-query-language.rst @@ -626,7 +626,8 @@ classes have to implement the base class : namespace MyProject\Query\AST; use \Doctrine\ORM\Query\AST\Functions\FunctionNode; - + use \Doctrine\ORM\Query\Lexer; + class MysqlFloor extends FunctionNode { public $simpleArithmeticExpression; @@ -642,7 +643,7 @@ classes have to implement the base class : { $lexer = $parser->getLexer(); - $parser->match(Lexer::T_ABS); + $parser->match(Lexer::T_IDENTIFIER); $parser->match(Lexer::T_OPEN_PARENTHESIS); $this->simpleArithmeticExpression = $parser->SimpleArithmeticExpression();