resourceConnection = $resourceConnection; } /** * @inheritdoc */ public function execute(string $type, string $code): void { $connection = $this->resourceConnection->getConnection(); $tableName = $this->resourceConnection->getTableName('inventory_stock_sales_channel'); $connection->delete($tableName, [ SalesChannelInterface::TYPE . ' = ?' => $type, SalesChannelInterface::CODE . ' = ?' => $code, ]); } }