Page MenuHomePhabricator

D12907.diff
No OneTemporary

D12907.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
Tue, Nov 12, 8:23 AM (6 d, 20 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6727480
Default Alt Text
D12907.diff (849 B)

Event Timeline