File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
app/code/Magento/Catalog/Model/ResourceModel/Layer/Filter Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -399,10 +399,19 @@ public function applyPriceRange(\Magento\Catalog\Model\Layer\Filter\FilterInterf
399
399
400
400
/**
401
401
* Initialize connection and define main table name
402
- * @deprecated
402
+ *
403
403
* @return void
404
404
*/
405
405
protected function _construct ()
406
+ {
407
+ $ this ->_init ('catalog_product_index_price ' , 'entity_id ' );
408
+ }
409
+
410
+ /**
411
+ * {@inheritdoc}
412
+ * @return string
413
+ */
414
+ public function getMainTable ()
406
415
{
407
416
$ storeKey = $ this ->httpContext ->getValue (StoreManagerInterface::CONTEXT_STORE );
408
417
$ priceTableName = $ this ->priceTableResolver ->resolve (
@@ -418,7 +427,8 @@ protected function _construct()
418
427
)
419
428
]
420
429
);
421
- $ this ->_init ($ priceTableName , 'entity_id ' );
430
+
431
+ return $ this ->getTable ($ priceTableName );
422
432
}
423
433
424
434
/**
You can’t perform that action at this time.
0 commit comments