Skip to content

Commit 9e4f01d

Browse files
author
Graham Wharton
committed
Removed replaced function from DbStorage, now implemented in own class.
1 parent 385df13 commit 9e4f01d

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

app/code/Magento/UrlRewrite/Model/Storage/DbStorage.php

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -375,33 +375,4 @@ public function deleteByData(array $data)
375375
$this->prepareSelect($data)->deleteFromSelect($this->resource->getTableName(self::TABLE_NAME))
376376
);
377377
}
378-
379-
/**
380-
* Function deleteEntitiesFromStores
381-
*
382-
* Deletes multiple URL Rewrites from database
383-
*
384-
* @param array $store_ids
385-
* @param array $entity_ids
386-
* @param int $entity_type
387-
*/
388-
public function deleteEntitiesFromStores($store_ids, $entity_ids, $entity_type)
389-
{
390-
$select = $this->connection->select();
391-
$select->from($this->resource->getTableName(self::TABLE_NAME));
392-
393-
$select->where(
394-
$this->connection->quoteIdentifier(
395-
UrlRewrite::STORE_ID
396-
) . ' IN (' . $this->connection->quote($store_ids, 'INTEGER') . ')' .
397-
' AND ' . $this->connection->quoteIdentifier(
398-
UrlRewrite::ENTITY_ID
399-
) . ' IN (' . $this->connection->quote($entity_ids, 'INTEGER') . ')' .
400-
' AND ' . $this->connection->quoteIdentifier(
401-
UrlRewrite::ENTITY_TYPE
402-
) . ' = ' . $this->connection->quote($entity_type)
403-
);
404-
$select = $select->deleteFromSelect($this->resource->getTableName(self::TABLE_NAME));
405-
$this->connection->query($select);
406-
}
407378
}

0 commit comments

Comments
 (0)