Skip to content

Commit 82fe828

Browse files
committed
MAGE-1122 Apply table name constants
1 parent 4f6f42e commit 82fe828

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Service/Product/MissingPriceIndexHandler.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,14 @@ protected function filterProductIds(array $productIds): array
6565
$collection->addAttributeToSelect(['name', 'price']);
6666

6767
$collection->getSelect()->joinLeft(
68-
['price_index' => 'catalog_product_index_price'],
69-
'e.entity_id = price_index.entity_id',
68+
[self::PRICE_INDEX_TABLE_ALIAS => self::PRICE_INDEX_TABLE],
69+
self::MAIN_TABLE_ALIAS . '.entity_id = ' . self::PRICE_INDEX_TABLE_ALIAS . '.entity_id',
7070
[]
7171
);
7272

7373
$collection->getSelect()
74-
->where('price_index.entity_id IS NULL')
75-
->where('e.entity_id IN (?)', $productIds);
74+
->where(self::PRICE_INDEX_TABLE_ALIAS . '.entity_id IS NULL')
75+
->where(self::MAIN_TABLE_ALIAS . '.entity_id IN (?)', $productIds);
7676

7777
return $collection->getAllIds();
7878
}

0 commit comments

Comments
 (0)