Skip to content

Commit d2f2a3f

Browse files
committed
MAGETWO-91799: Implement ConfigurableProduct Price indexer
1 parent a78e5f9 commit d2f2a3f

File tree

2 files changed

+7
-4
lines changed
  • app/code/Magento
    • ConfigurableProduct/Model/ResourceModel/Product/Indexer/Price
    • Downloadable/Model/ResourceModel/Indexer

2 files changed

+7
-4
lines changed

app/code/Magento/ConfigurableProduct/Model/ResourceModel/Product/Indexer/Price/Configurable.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ class Configurable implements DimensionalIndexerInterface
7878
* @param TableMaintainer $tableMaintainer
7979
* @param MetadataPool $metadataPool
8080
* @param \Magento\Framework\App\ResourceConnection $resource
81-
* @param string $fullReindexAction
81+
* @param BasePriceModifier $basePriceModifier
82+
* @param bool $fullReindexAction
8283
* @param string $connectionName
8384
* @param string $productType
84-
* @param array $priceModifiers
8585
*/
8686
public function __construct(
8787
BaseFinalPrice $baseFinalPrice,

app/code/Magento/Downloadable/Model/ResourceModel/Indexer/Price.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,11 @@ private function getTable($tableName)
291291
* @throws \Magento\Framework\Exception\LocalizedException
292292
* @throws \Zend_Db_Select_Exception
293293
*/
294-
private function fillFinalPrice(array $dimensions, \Traversable $entityIds, IndexTableStructure $temporaryPriceTable)
295-
{
294+
private function fillFinalPrice(
295+
array $dimensions,
296+
\Traversable $entityIds,
297+
IndexTableStructure $temporaryPriceTable
298+
) {
296299
$select = $this->baseFinalPrice->getQuery($dimensions, $this->productType, iterator_to_array($entityIds));
297300
$query = $select->insertFromSelect($temporaryPriceTable->getTableName(), [], false);
298301
$this->tableMaintainer->getConnection()->query($query);

0 commit comments

Comments
 (0)