2016-12-06 20:54:03 0 评论 Yii 2.0 Boy.Lee

Yii 2.0 在ActiveRecord中的AfterSave里执行save操作

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

$this->updateAttributes($sumCollect);