Commit c1bfba18 authored by Shakarim Sapa's avatar Shakarim Sapa

- Добавили очищение расписания после удаления подписки

parent b98257bf
......@@ -75,6 +75,15 @@ class BlogBids extends ActiveRecordModel {
}
}
public function beforeDelete(){
if (!parent::beforeDelete())
return false;
BlogSchedule::deleteAll(['email' => $this->email]);
return true;
}
public function behaviors(){
return [];
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment