Update() Calling Useridentity?

I have a standard update function as follows:

public function actionUpdateUser()


    $user = User::model()->findByPk(Yii::app()->user->id);


    $user->active = 0;



For some reason, the update() seems to be going via UserIdentity? I know this is happening because I put a die() statement within the authenticate() function in UserIdentity. I don’t have any access rules in my controller so not sure why it would do this. Anybody got any ideas?

EDIT: Problem solved - I had some leftover code in my User model which was calling UserIdentity in the afterSave() method.