예제 #1
0
파일: Tag.php 프로젝트: app-dev-ru/lingnote
 public function beforeDelete()
 {
     foreach ($this->tagUserAccesses as $item) {
         $item->delete();
     }
     ObjectTag::deleteAll(['tag_id' => $this->id]);
     return parent::beforeDelete();
 }