Changeset View
Changeset View
Standalone View
Standalone View
src/applications/pholio/storage/PholioMock.php
Show First 20 Lines • Show All 253 Lines • ▼ Show 20 Lines | /* -( PhabricatorDestructibleInterface )----------------------------------- */ | ||||
public function destroyObjectPermanently( | public function destroyObjectPermanently( | ||||
PhabricatorDestructionEngine $engine) { | PhabricatorDestructionEngine $engine) { | ||||
$this->openTransaction(); | $this->openTransaction(); | ||||
$images = id(new PholioImageQuery()) | $images = id(new PholioImageQuery()) | ||||
->setViewer($engine->getViewer()) | ->setViewer($engine->getViewer()) | ||||
->withMockIDs(array($this->getID())) | ->withMockIDs(array($this->getPHID())) | ||||
epriestley: I missed updating the actual method call here, later fixed in D21081. | |||||
->execute(); | ->execute(); | ||||
foreach ($images as $image) { | foreach ($images as $image) { | ||||
$image->delete(); | $image->delete(); | ||||
} | } | ||||
$this->delete(); | $this->delete(); | ||||
$this->saveTransaction(); | $this->saveTransaction(); | ||||
} | } | ||||
Show All 26 Lines |
I missed updating the actual method call here, later fixed in D21081.