Differential D12608 Diff 30422 src/applications/repository/storage/PhabricatorRepositoryArcanistProject.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/storage/PhabricatorRepositoryArcanistProject.php
Show All 39 Lines | protected function getConfiguration() { | ||||
) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
} | } | ||||
public function generatePHID() { | public function generatePHID() { | ||||
return PhabricatorPHID::generateNewPHID( | return PhabricatorPHID::generateNewPHID( | ||||
PhabricatorRepositoryArcanistProjectPHIDType::TYPECONST); | PhabricatorRepositoryArcanistProjectPHIDType::TYPECONST); | ||||
} | } | ||||
public function delete() { | |||||
$this->openTransaction(); | |||||
queryfx( | |||||
$this->establishConnection('w'), | |||||
'DELETE FROM %T WHERE arcanistProjectID = %d', | |||||
id(new PhabricatorRepositorySymbol())->getTableName(), | |||||
$this->getID()); | |||||
$result = parent::delete(); | |||||
$this->saveTransaction(); | |||||
return $result; | |||||
} | |||||
public function getRepository() { | public function getRepository() { | ||||
return $this->assertAttached($this->repository); | return $this->assertAttached($this->repository); | ||||
} | } | ||||
public function attachRepository(PhabricatorRepository $repository = null) { | public function attachRepository(PhabricatorRepository $repository = null) { | ||||
$this->repository = $repository; | $this->repository = $repository; | ||||
return $this; | return $this; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines |