Page MenuHomePhabricator

D16182.diff
No OneTemporary

D16182.diff

diff --git a/src/applications/badges/storage/PhabricatorBadgesBadge.php b/src/applications/badges/storage/PhabricatorBadgesBadge.php
--- a/src/applications/badges/storage/PhabricatorBadgesBadge.php
+++ b/src/applications/badges/storage/PhabricatorBadgesBadge.php
@@ -186,7 +186,7 @@
->execute();
foreach ($awards as $award) {
- $engine->destroyObjectPermanently($award);
+ $engine->destroyObject($award);
}
$this->openTransaction();
diff --git a/src/applications/phame/storage/PhameBlog.php b/src/applications/phame/storage/PhameBlog.php
--- a/src/applications/phame/storage/PhameBlog.php
+++ b/src/applications/phame/storage/PhameBlog.php
@@ -322,10 +322,12 @@
$this->openTransaction();
- $posts = id(new PhamePost())
- ->loadAllWhere('blogPHID = %s', $this->getPHID());
+ $posts = id(new PhamePostQuery())
+ ->setViewer($engine->getViewer())
+ ->withBlogPHIDs(array($this->getPHID()))
+ ->execute();
foreach ($posts as $post) {
- $post->delete();
+ $engine->destroyObject($post);
}
$this->delete();
diff --git a/src/applications/phame/storage/PhamePost.php b/src/applications/phame/storage/PhamePost.php
--- a/src/applications/phame/storage/PhamePost.php
+++ b/src/applications/phame/storage/PhamePost.php
@@ -258,15 +258,15 @@
return $timeline;
}
+
/* -( PhabricatorDestructibleInterface )----------------------------------- */
+
public function destroyObjectPermanently(
PhabricatorDestructionEngine $engine) {
$this->openTransaction();
-
$this->delete();
-
$this->saveTransaction();
}

File Metadata

Mime Type
text/plain
Expires
Mon, May 13, 10:09 PM (1 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6276286
Default Alt Text
D16182.diff (1 KB)

Event Timeline