- Добавлено удаление записей в расписании при удалении пользователя

parent be5f256c
...@@ -526,6 +526,11 @@ class User extends \common\components\ActiveRecordModel implements IdentityInter ...@@ -526,6 +526,11 @@ class User extends \common\components\ActiveRecordModel implements IdentityInter
return true; return true;
} }
public function afterDelete()
{
TriggerSchedule::deleteAll(['email' => $this->email]);
}
public function getFio() public function getFio()
{ {
$result = $this->name; $result = $this->name;
......
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