Permalink
Browse files

Merge pull request #64 from ebernhardson/master

Replace non-existant constant T_ABS
  • Loading branch information...
2 parents e85ce5c + 5ea8861 commit 373090f2232a59b7c4cb35212a1c1d5843bc8be7 @guilhermeblanco guilhermeblanco committed Dec 14, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 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();

0 comments on commit 373090f

Please sign in to comment.