1
0
Fork 0
mirror of synced 2025-04-01 12:26:11 +03:00
This commit is contained in:
Lukasz Cybula 2012-11-05 14:47:41 +01:00
parent 7b1d84cbdb
commit 08a3423ce2
2 changed files with 4 additions and 2 deletions

View file

@ -358,6 +358,7 @@ class Parser
default:
$treeWalkerChain->walkSelectStatement($AST);
}
$this->queryComponents = $treeWalkerChain->getQueryComponents();
}
@ -1751,7 +1752,7 @@ class Parser
* NewObjectArg ::= ScalarExpression
*
* @TODO - Maybe you should support other expressions and nested "new" operator
*
*
* @return \Doctrine\ORM\Query\AST\SimpleSelectExpression
*/
public function NewObjectArg()
@ -2094,7 +2095,7 @@ class Parser
case ($lookaheadType === Lexer::T_NEW):
$expression = $this->NewObjectExpression();
break;
default:
$this->syntaxError(
'IdentificationVariable | ScalarExpression | AggregateExpression | FunctionDeclaration | PartialObjectExpression | "(" Subselect ")" | CaseExpression',

View file

@ -94,6 +94,7 @@ class TreeWalkerChain implements TreeWalker
{
foreach ($this->_walkers as $walker) {
$walker->walkSelectStatement($AST);
$this->_queryComponents = $walker->getQueryComponents();
}
}