In Yii 2.0 run save in ActiveRecord's AfterSave

$sumCollect = [];
$sumCollect['name'] = 'Lee';
$sumCollect['from'] = 'yiilib.com';

$this->updateAttributes($sumCollect);