示例#1
0
文件: Answer.php 项目: faninv/gtqa
 /**
  * This is invoked after the record is deleted.
  */
 public function afterDelete()
 {
     parent::afterDelete();
     Question::decrementAnswers($this->question_id);
     Vote::removeRelation($this);
 }
示例#2
0
文件: Question.php 项目: faninv/gtqa
 /**
  * This is invoked after the record is deleted.
  */
 public function afterDelete()
 {
     parent::afterDelete();
     Tag::updateFrequency($this->tags, '');
     Vote::removeRelation($this);
     Answer::removeRelation($this->id);
 }