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 220220 <argument name =" filter" xsi : type =" object" >Magento\Catalog\Ui\DataProvider\Product\AddSearchKeyConditionToCollection</argument >
221221 </arguments >
222222 </type >
223- <type name =" Magento\Framework\App\ResourceConnection" >
224- <plugin name =" get_catalog_category_product_index_table_name" type =" Magento\Catalog\Model\Indexer\Category\Product\Plugin\TableResolver" />
225- </type >
226223</config >
You can’t perform that action at this time.
0 commit comments