File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Model/Indexer/Category/Product Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1313use Magento \Catalog \Model \Indexer \Category \Product \AbstractAction ;
1414use Magento \Framework \Indexer \ScopeResolver \IndexScopeResolver as TableResolver ;
1515
16+ /**
17+ * Class encapsulate logic of work with tables per store in Category Product indexer
18+ */
1619class TableMaintainer
1720{
1821 /**
@@ -202,9 +205,14 @@ public function createMainTmpTable(int $storeId)
202205 * @param $storeId
203206 *
204207 * @return string
208+ *
209+ * @throws \Exception
205210 */
206211 public function getMainTmpTable (int $ storeId )
207212 {
213+ if (!isset ($ this ->mainTmpTable [$ storeId ])) {
214+ throw new \Exception ('Temporary table does not exist ' );
215+ }
208216 return $ this ->mainTmpTable [$ storeId ];
209217 }
210218}
Original file line number Diff line number Diff line change 193193 <type name =" Magento\Eav\Api\AttributeSetRepositoryInterface" >
194194 <plugin name =" remove_products" type =" Magento\Catalog\Plugin\Model\AttributeSetRepository\RemoveProducts" />
195195 </type >
196- <type name =" Magento\Framework\App\ResourceConnection" >
197- <plugin name =" get_catalog_category_product_index_table_name" type =" Magento\Catalog\Model\Indexer\Category\Product\Plugin\TableResolver" />
198- </type >
199196</config >
You can’t perform that action at this time.
0 commit comments