We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 691abcc commit ca58bc9Copy full SHA for ca58bc9
app/code/core/Mage/Core/Model/Resource/Db/Collection/Abstract.php
@@ -333,13 +333,13 @@ public function addFieldToSelect($field, $alias = null)
333
334
/**
335
* Add attribute expression (SUM, COUNT, etc)
336
- * Example: ('sub_total', 'SUM({{attribute}})', 'revenue')
+ * Example: ('sub_total', 'SUM({{attribute}})', array('attribute' => 'revenue'))
337
* Example: ('sub_total', 'SUM({{revenue}})', 'revenue')
338
* For some functions like SUM use groupByAttribute.
339
*
340
* @param string $alias
341
* @param string $expression
342
- * @param array $fields
+ * @param array|string $fields
343
* @return $this
344
*/
345
public function addExpressionFieldToSelect($alias, $expression, $fields)
0 commit comments