Skip to content

Commit

Permalink
Updated AbstractCollection.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Shikha Mishra committed Dec 20, 2018
1 parent 598881f commit 84461c5
Showing 1 changed file with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -500,23 +500,6 @@ public function getAllIds()
$idsSelect->columns($this->getResource()->getIdFieldName(), 'main_table');
return $this->getConnection()->fetchCol($idsSelect, $this->_bindParams);
}

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

$idsSelect->columns($fieldName, 'main_table');
return $this->getConnection()->fetchCol($idsSelect, $this->_bindParams);
}

/**
* Join table to collection select
Expand Down

0 comments on commit 84461c5

Please sign in to comment.