Yii::app()->user->id; is returning username instead of id number

I have a very strange problem in that on one machine Yii::app()->user->id; returns the username, but on another machine running identical code I’m getting the id number as expected. I’m using the User Management Module 0.5, though I don’t know if that’s anything to do with it. The only difference between the machines is one is x64 and the other is x32 - again - I don’t think that has anything to do with it.

How could Yii::app()->user->id be getting the username? What have I missed?

By default getId() method returns username it has to be overriden to return id…

Check this documentation http://www.yiiframew…-identity-class

[i]

[/i]