コード例 #1
0
 public function delete()
 {
     // TODO:
     //    $this->openTransaction();
     queryfx($this->establishConnection('w'), 'DELETE FROM %T WHERE ruleID = %d', id(new HeraldCondition())->getTableName(), $this->getID());
     queryfx($this->establishConnection('w'), 'DELETE FROM %T WHERE ruleID = %d', id(new HeraldAction())->getTableName(), $this->getID());
     parent::delete();
     //    $this->saveTransaction();
 }
コード例 #2
0
ファイル: HeraldRule.php プロジェクト: rchicoli/phabricator
 public function delete()
 {
     $this->openTransaction();
     queryfx($this->establishConnection('w'), 'DELETE FROM %T WHERE ruleID = %d', id(new HeraldCondition())->getTableName(), $this->getID());
     queryfx($this->establishConnection('w'), 'DELETE FROM %T WHERE ruleID = %d', id(new HeraldActionRecord())->getTableName(), $this->getID());
     $result = parent::delete();
     $this->saveTransaction();
     return $result;
 }