Question: "Why handle field if it is not described in the model, and write to the log error".
public function rules()
{
// NOTE: you should only define rules for those attributes that
// will receive user inputs.
return array(
array('email, password', 'required', 'on' => 'registration'),
array('is_real', 'numerical', 'integerOnly'=>true),
array('email', 'length', 'max'=>150),
array('cat', 'length', 'max'=>255),
array('password', 'length', 'max'=>32),
// The following rule is used by search().
// Please remove those attributes that should not be searched.
array('id, email, cat, password, is_real', 'safe', 'on'=>'search'),
)
}
Error
Failed to assign unsafe attribute "region_id" class "RegistrationUser".