Changes
Title
unchanged
"safe" and "unsafe" Model validators (massive assignments)
Category
unchanged
How-tos
Yii version
unchanged
Tags
unchanged
safe, unsafe, validators, scenarios, model
Content
unchanged
[...]
$this->render('create',array('model'=>$model));
}
```
note: the first rule matches and save the attribute (for all cases even for blacklistuser scenario) but the second one overrides the first and assigns as unsaved this attribute. also κeep in mind the order of the rules is irrelevant.