Skip to content

Commit

Permalink
Updated AbstractCollection.php
Browse files Browse the repository at this point in the history
Added new function i.e getAllColumnValues which reset current collection limits/orders and returns all values from collection for specific field in array
  • Loading branch information
Shikha Mishra committed Dec 20, 2018
1 parent 0810a4a commit a69b2d9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -502,11 +502,11 @@ public function getAllIds()
}

/**
* Retrieve field values for collection
* Retrieve all values from collection for specific field
*
* @return array
*/
public function getColumnValues($fieldName)
public function getAllColumnValues($fieldName)
{
$idsSelect = clone $this->getSelect();
$idsSelect->reset(\Magento\Framework\DB\Select::ORDER);
Expand Down

0 comments on commit a69b2d9

Please sign in to comment.