1
0
mirror of synced 2024-12-14 23:26:04 +03:00
doctrine2/lib/Doctrine/ORM/Query/AST/Functions/CurrentDateFunction.php

30 lines
605 B
PHP

<?php
namespace Doctrine\ORM\Query\AST\Functions;
/**
* "CURRENT_DATE"
*
* @author robo
*/
class CurrentDateFunction extends FunctionNode
{
/**
* @override
*/
public function getSql(\Doctrine\ORM\Query\SqlWalker $sqlWalker)
{
return $sqlWalker->getConnection()->getDatabasePlatform()->getCurrentDateSql();
}
/**
* @override
*/
public function parse(\Doctrine\ORM\Query\Parser $parser)
{
$lexer = $parser->getLexer();
$parser->match($lexer->lookahead['value']);
$parser->match('(');
$parser->match(')');
}
}