Beispiel #1
0
 public function afterDelete()
 {
     parent::afterDelete();
     unlink(\Yii::getAlias('@webroot' . $this->path));
 }
Beispiel #2
0
 public function afterDelete()
 {
     parent::afterDelete();
     $this->deleteCategories($this->status == static::STATUS_PUBLISH);
     $this->deleteTags($this->status == static::STATUS_PUBLISH);
     $this->deleteAttachments();
 }
Beispiel #3
0
 public function afterDelete()
 {
     parent::afterDelete();
     $this->deleteAttachments();
 }