File tree Expand file tree Collapse file tree 1 file changed +0
-29
lines changed
app/code/Magento/UrlRewrite/Model/Storage Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Original file line number Diff line number Diff line change @@ -375,33 +375,4 @@ public function deleteByData(array $data)
375
375
$ this ->prepareSelect ($ data )->deleteFromSelect ($ this ->resource ->getTableName (self ::TABLE_NAME ))
376
376
);
377
377
}
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
- }
407
378
}
You can’t perform that action at this time.
0 commit comments