Commit 401235d7 authored by guilhermeblanco's avatar guilhermeblanco

[2.0] Started refactoring of AST nodes to use public properties instead of getter/setter methods

parent 3949fddc
......@@ -681,16 +681,16 @@ class SqlWalker implements TreeWalker
public function walkAggregateExpression($aggExpression)
{
$sql = '';
$parts = $aggExpression->getPathExpression()->getParts();
$dqlAlias = $aggExpression->getPathExpression()->getIdentificationVariable();
$parts = $aggExpression->pathExpression->getParts();
$dqlAlias = $aggExpression->pathExpression->getIdentificationVariable();
$fieldName = $parts[0];
$qComp = $this->_queryComponents[$dqlAlias];
$columnName = $qComp['metadata']->getColumnName($fieldName);
$sql .= $aggExpression->getFunctionName() . '(';
$sql .= $aggExpression->functionName . '(';
if ($aggExpression->isDistinct()) $sql .= 'DISTINCT ';
if ($aggExpression->isDistinct) $sql .= 'DISTINCT ';
$sql .= $this->getSqlTableAlias($qComp['metadata']->getTableName(), $dqlAlias) . '.'
. $this->_conn->quoteIdentifier($columnName) . ')';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment