yii2/db/BaseActiveRecord::afterSave() upgrade fix

read here :
https://github.com/yiisoft/yii2/commit/2cab70b0649a1b2f846094cb1f19e605a4a9a0b8#diff-e1e996b8f4fad49a953291c4f5fc0931R865