frontend\modules\tweet\models\Tweet::afterSave PHP Метод

afterSave() публичный Метод

public afterSave ( $insert, $changedAttributes )
    public function afterSave($insert, $changedAttributes)
    {
        parent::afterSave($insert, $changedAttributes);
        (new UserMeta())->saveNewMeta($this->type, $this->id, 'follow');
        (new NotificationService())->newPostNotify(\Yii::$app->user->identity, $this, $this->atUsers);
    }