Page MenuHomePhabricator

D12907.id31045.diff
No OneTemporary

D12907.id31045.diff

diff --git a/src/applications/system/engine/PhabricatorDestructionEngine.php b/src/applications/system/engine/PhabricatorDestructionEngine.php
--- a/src/applications/system/engine/PhabricatorDestructionEngine.php
+++ b/src/applications/system/engine/PhabricatorDestructionEngine.php
@@ -116,13 +116,14 @@
}
private function destroyNotifications($object_phid) {
- $notifications = id(new PhabricatorFeedStoryNotification())->loadAllWhere(
- 'primaryObjectPHID = %s',
- $object_phid);
+ $table = id(new PhabricatorFeedStoryNotification());
+ $conn_w = $table->establishConnection('w');
- foreach ($notifications as $notification) {
- $notification->delete();
- }
+ queryfx(
+ $conn_w,
+ 'DELETE FROM %T WHERE primaryObjectPHID = %s',
+ $table->getTableName(),
+ $object_phid);
}
}

File Metadata

Mime Type
text/plain
Expires
Thu, Oct 24, 2:16 PM (3 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6727480
Default Alt Text
D12907.id31045.diff (849 B)

Event Timeline