Seeing Exceptions With Multiple User Component

Hi all i am trying to add new user component(employer) along with user component, i am seeing exceptions when i use new employer component.

My config file




'components'=>array(

                'user'=>array(

			// enable cookie-based authentication

			'allowAutoLogin'=>true,

		),

		'employer'=>array(

				'class'=>'EmployerIdentity',

				// enable cookie-based authentication

				'allowAutoLogin'=>true,

		),

)



My UserIdentify and EmployerIdentify has similar authentication except model name changed.

Now when i try to check employer is guest


Yii::app()->employer->isGuest

then i am seeing below exception




Missing argument 1 for CUserIdentity::__construct(), called in E:\xampp\htdocs\yii-1.1.12\framework\YiiBase.php on line 219 and defined 



can some one help me out on this.

Dear Pavan Kumar

user is an instance of CWebUser.

EmployerIdendity should be derived from CWebUser.