1313use Magento \Framework \App \ResourceConnection ;
1414use Magento \Framework \DB \Select ;
1515use Magento \Framework \EntityManager \MetadataPool ;
16+ use Magento \Framework \Exception \LocalizedException ;
17+ use Magento \DataExporter \Model \Query \MarkRemovedEntitiesQuery as DefaultMarkRemovedEntitiesQuery ;
1618
1719/**
1820 * Select price feed items that should be removed when product:
2325 * Remove price for specific customer group handled in provider:
2426 * @see \Magento\ProductPriceDataExporter\Model\Provider\DeleteFeedItems
2527 */
26- class MarkRemovedEntitiesQuery
28+ class MarkRemovedEntitiesQuery extends DefaultMarkRemovedEntitiesQuery
2729{
2830 private const STATUS_ATTRIBUTE_CODE = "status " ;
2931
@@ -57,6 +59,7 @@ public function __construct(
5759 $ this ->resourceConnection = $ resourceConnection ;
5860 $ this ->eavConfig = $ eavConfig ;
5961 $ this ->metadataPool = $ metadataPool ;
62+ parent ::__construct ($ resourceConnection );
6063 }
6164
6265 /**
@@ -66,7 +69,7 @@ public function __construct(
6669 * @param FeedIndexMetadata $metadata
6770 *
6871 * @return Select
69- * @throws \Magento\Framework\Exception\ LocalizedException
72+ * @throws LocalizedException
7073 */
7174 public function getQuery (array $ ids , FeedIndexMetadata $ metadata ): Select
7275 {
@@ -75,13 +78,13 @@ public function getQuery(array $ids, FeedIndexMetadata $metadata): Select
7578 $ catalogProductTable = $ this ->resourceConnection ->getTableName ($ metadata ->getSourceTableName ());
7679 $ productEntityJoinField = $ connection ->getAutoIncrementField ($ catalogProductTable );
7780 return $ connection ->select ()
78- ->from (['feed ' => $ this ->resourceConnection ->getTableName ($ metadata ->getFeedTableName ())])
81+ ->from (
82+ ['feed ' => $ this ->resourceConnection ->getTableName ($ metadata ->getFeedTableName ())]
83+ )
7984 ->joinLeft (
8085 ['p ' => $ catalogProductTable ],
8186 \sprintf ('feed.%s = p.%s ' , $ metadata ->getFeedTableField (), $ metadata ->getSourceTableField ()),
82- [
83- 'is_deleted ' => new \Zend_Db_Expr ('1 ' )
84- ]
87+ []
8588 )
8689 ->joinLeft (
8790 ['w ' => $ this ->resourceConnection ->getTableName ('store_website ' )],
0 commit comments