switched 2nd and 3rd argument for SelectExpression's constructor, making the 3rd one optional to keep its signature compatible to previous versions
This commit is contained in:
parent
f3b6ed03f3
commit
1681d8a893
@ -36,14 +36,14 @@ namespace Doctrine\ORM\Query\AST;
|
|||||||
class SelectExpression extends Node
|
class SelectExpression extends Node
|
||||||
{
|
{
|
||||||
public $expression;
|
public $expression;
|
||||||
public $hiddenAliasResultVariable;
|
|
||||||
public $fieldIdentificationVariable;
|
public $fieldIdentificationVariable;
|
||||||
|
public $hiddenAliasResultVariable;
|
||||||
|
|
||||||
public function __construct($expression, $hiddenAliasResultVariable, $fieldIdentificationVariable)
|
public function __construct($expression, $fieldIdentificationVariable, $hiddenAliasResultVariable = false)
|
||||||
{
|
{
|
||||||
$this->expression = $expression;
|
$this->expression = $expression;
|
||||||
$this->hiddenAliasResultVariable = $hiddenAliasResultVariable;
|
|
||||||
$this->fieldIdentificationVariable = $fieldIdentificationVariable;
|
$this->fieldIdentificationVariable = $fieldIdentificationVariable;
|
||||||
|
$this->hiddenAliasResultVariable = $hiddenAliasResultVariable;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function dispatch($sqlWalker)
|
public function dispatch($sqlWalker)
|
||||||
|
@ -1921,7 +1921,7 @@ class Parser
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$expr = new AST\SelectExpression($expression, $hiddenAliasResultVariable, $fieldAliasIdentificationVariable);
|
$expr = new AST\SelectExpression($expression, $fieldAliasIdentificationVariable, $hiddenAliasResultVariable);
|
||||||
|
|
||||||
if ( ! $supportsAlias) {
|
if ( ! $supportsAlias) {
|
||||||
$this->_identVariableExpressions[$identVariable] = $expr;
|
$this->_identVariableExpressions[$identVariable] = $expr;
|
||||||
|
Loading…
Reference in New Issue
Block a user