Skip to content

Commit ca58bc9

Browse files
Fixed phpdoc (#1689)
Fixed phpdoc of Mage_Core_Model_Resource_Db_Collection_Abstract::addExpressionFieldToSelect
1 parent 691abcc commit ca58bc9

File tree

1 file changed

+2
-2
lines changed
  • app/code/core/Mage/Core/Model/Resource/Db/Collection

1 file changed

+2
-2
lines changed

app/code/core/Mage/Core/Model/Resource/Db/Collection/Abstract.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,13 +333,13 @@ public function addFieldToSelect($field, $alias = null)
333333

334334
/**
335335
* Add attribute expression (SUM, COUNT, etc)
336-
* Example: ('sub_total', 'SUM({{attribute}})', 'revenue')
336+
* Example: ('sub_total', 'SUM({{attribute}})', array('attribute' => 'revenue'))
337337
* Example: ('sub_total', 'SUM({{revenue}})', 'revenue')
338338
* For some functions like SUM use groupByAttribute.
339339
*
340340
* @param string $alias
341341
* @param string $expression
342-
* @param array $fields
342+
* @param array|string $fields
343343
* @return $this
344344
*/
345345
public function addExpressionFieldToSelect($alias, $expression, $fields)

0 commit comments

Comments
 (0)