Skip to content

Commit

Permalink
Fixed phpdoc (#1689)
Browse files Browse the repository at this point in the history
Fixed phpdoc of Mage_Core_Model_Resource_Db_Collection_Abstract::addExpressionFieldToSelect
  • Loading branch information
midlan authored Jul 6, 2021
1 parent b34c623 commit 8c25b15
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -333,13 +333,13 @@ public function addFieldToSelect($field, $alias = null)

/**
* Add attribute expression (SUM, COUNT, etc)
* Example: ('sub_total', 'SUM({{attribute}})', 'revenue')
* Example: ('sub_total', 'SUM({{attribute}})', array('attribute' => 'revenue'))
* Example: ('sub_total', 'SUM({{revenue}})', 'revenue')
* For some functions like SUM use groupByAttribute.
*
* @param string $alias
* @param string $expression
* @param array $fields
* @param array|string $fields
* @return $this
*/
public function addExpressionFieldToSelect($alias, $expression, $fields)
Expand Down

0 comments on commit 8c25b15

Please sign in to comment.