public function afterSave($insert, $changedAttributes)
{
if(!$insert && isset($changedAttributes[' ... '])) {
\\code
}
parent::afterSave($insert, $changedAttributes);
}
$customer = new Customer();
$customer->attributes = $values;
$customer->save();