public setAttributes ( array $values, boolean $safeOnly = true ) | ||
$values | array | attribute values (name => value) to be assigned to the model. |
$safeOnly | boolean | whether the assignments should only be done to the safe attributes. A safe attribute is one that is associated with a validation rule in the current [[scenario]]. |