Model behaviors - How to get old value on event afterupdate

I have some model behavior. I use after update event. Also I need to catch old value before model is updated. I used before update event but I got new model value.

Can you provide me some solution for my issue?

Thanks

Here is a git post with a similar problem to solve.

I saw that post but this is for model->save(). I have issue with model->update(). That event I want to catch and to find way how to catch old value in my behavior

That will be called after save and update


public function afterSave($insert, $changedAttributes) {

        if ($insert) {

            //new record

        } else {

            //updated record

        }

        parent::afterSave($insert, $changedAttributes);

}

Thanks