/**
  * Delete entity attribute values
  *
  * @param \Magento\Framework\DataObject $object
  * @param string $table
  * @param array $info
  * @return $this
  */
 protected function _deleteAttributes($object, $table, $info)
 {
     $connection = $this->getConnection();
     $entityIdField = $this->getEntityIdField();
     $globalValues = [];
     $websiteAttributes = [];
     $storeAttributes = [];
     /**
      * Separate attributes by scope
      */
     foreach ($info as $itemData) {
         $attribute = $this->getAttribute($itemData['attribute_id']);
         if ($attribute->isScopeStore()) {
             $storeAttributes[] = (int) $itemData['attribute_id'];
         } elseif ($attribute->isScopeWebsite()) {
             $websiteAttributes[] = (int) $itemData['attribute_id'];
         } elseif ($itemData['value_id'] !== null) {
             $globalValues[] = (int) $itemData['value_id'];
         }
     }
     /**
      * Delete global scope attributes
      */
     if (!empty($globalValues)) {
         $connection->delete($table, ['value_id IN (?)' => $globalValues]);
     }
     $condition = [$entityIdField . ' = ?' => $object->getId()];
     /**
      * Delete website scope attributes
      */
     if (!empty($websiteAttributes)) {
         $storeIds = $object->getWebsiteStoreIds();
         if (!empty($storeIds)) {
             $delCondition = $condition;
             $delCondition['attribute_id IN(?)'] = $websiteAttributes;
             $delCondition['store_id IN(?)'] = $storeIds;
             $connection->delete($table, $delCondition);
         }
     }
     /**
      * Delete store scope attributes
      */
     if (!empty($storeAttributes)) {
         $delCondition = $condition;
         $delCondition['attribute_id IN(?)'] = $storeAttributes;
         $delCondition['store_id = ?'] = (int) $object->getStoreId();
         $connection->delete($table, $delCondition);
     }
     return $this;
 }