Rename Item::delete* methods to Item::markForDeletion*

This commit is contained in:
Hypolite Petovan 2020-03-03 01:47:28 -05:00
parent dd613cda45
commit 6ae5f705b6
7 changed files with 22 additions and 23 deletions

View file

@ -41,7 +41,7 @@ class RemoveUser {
do {
$items = Item::select(['id'], $condition, ['limit' => 100]);
while ($item = Item::fetch($items)) {
Item::deleteById($item['id'], PRIORITY_NEGLIGIBLE);
Item::markForDeletionById($item['id'], PRIORITY_NEGLIGIBLE);
}
DBA::close($items);
} while (Item::exists($condition));