From 401235d7cafe74ba1a5c104d0720442d4d8d3630 Mon Sep 17 00:00:00 2001 From: guilhermeblanco Date: Thu, 6 Aug 2009 15:38:41 +0000 Subject: [PATCH] [2.0] Started refactoring of AST nodes to use public properties instead of getter/setter methods --- lib/Doctrine/ORM/Query/SqlWalker.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Doctrine/ORM/Query/SqlWalker.php b/lib/Doctrine/ORM/Query/SqlWalker.php index a4b6eb3ed..5b5a9a5ee 100644 --- a/lib/Doctrine/ORM/Query/SqlWalker.php +++ b/lib/Doctrine/ORM/Query/SqlWalker.php @@ -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) . ')';