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 13
13
use Magento \Catalog \Model \Indexer \Category \Product \AbstractAction ;
14
14
use Magento \Framework \Indexer \ScopeResolver \IndexScopeResolver as TableResolver ;
15
15
16
+ /**
17
+ * Class encapsulate logic of work with tables per store in Category Product indexer
18
+ */
16
19
class TableMaintainer
17
20
{
18
21
/**
@@ -202,9 +205,14 @@ public function createMainTmpTable(int $storeId)
202
205
* @param $storeId
203
206
*
204
207
* @return string
208
+ *
209
+ * @throws \Exception
205
210
*/
206
211
public function getMainTmpTable (int $ storeId )
207
212
{
213
+ if (!isset ($ this ->mainTmpTable [$ storeId ])) {
214
+ throw new \Exception ('Temporary table does not exist ' );
215
+ }
208
216
return $ this ->mainTmpTable [$ storeId ];
209
217
}
210
218
}
Original file line number Diff line number Diff line change 220
220
<argument name =" filter" xsi : type =" object" >Magento\Catalog\Ui\DataProvider\Product\AddSearchKeyConditionToCollection</argument >
221
221
</arguments >
222
222
</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 >
226
223
</config >
You can’t perform that action at this time.
0 commit comments