setAttributes() public method
public void setAttributes ( $values, $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. |
Please login to continue.