$this->username)); echo…”/>
код из UserIdentity: findByAttributes(array('login'=>$this->username)); echo ""; print_r($record); echo ""; if($record===null){ $this->errorCode=self::ERROR_USERNAME_INVALID; }else if($record->password!==md5($this->password)){ $this->errorCode=self::ERROR_PASSWORD_INVALID; }else{ $this->_id=$record->id; $this->setState('login', $record->username); $this->errorCode=self::ERROR_NONE; } return!$this->errorCode; } public function getId(){ return $this->_id; } } после выборки из базы массив $record выглядит вот так Users Object ( [_md:private] => CActiveRecordMetaData Object ( [tableSchema] => CMysqlTableSchema Object ( [schemaName] => [name] => users [rawName] => `users` [primaryKey] => id [sequenceName] => [foreignKeys] => Array ( ) [columns] => Array ( [id] => CMysqlColumnSchema Object ( [name] => id [rawName] => `id` [allowNull] => [dbType] => int(11) [type] => integer [defaultValue] => [size] => 11 [precision] => 11 [scale] => [isPrimaryKey] => 1 [isForeignKey] => [_e:private] => [_m:private] => ) [login] => CMysqlColumnSchema Object ( [name] => login [rawName] => `login` [allowNull] => [dbType] => varchar(50) [type] => string [defaultValue] => [size] => 50 [precision] => 50 [scale] => [isPrimaryKey] => [isForeignKey] => [_e:private] => [_m:private] => ) [password] => CMysqlColumnSchema Object ( [name] => password [rawName] => `password` [allowNull] => [dbType] => char(32) [type] => string [defaultValue] => [size] => 32 [precision] => 32 [scale] => [isPrimaryKey] => [isForeignKey] => [_e:private] => [_m:private] => ) ) [_e:private] => [_m:private] => ) [columns] => Array ( [id] => CMysqlColumnSchema Object ( [name] => id [rawName] => `id` [allowNull] => [dbType] => int(11) [type] => integer [defaultValue] => [size] => 11 [precision] => 11 [scale] => [isPrimaryKey] => 1 [isForeignKey] => [_e:private] => [_m:private] => ) [login] => CMysqlColumnSchema Object ( [name] => login [rawName] => `login` [allowNull] => мне не совсем понятно что значит стока $this->setState('login', $record->username); если $record->username несуществует