Commit edb0991b by Alexander Makarov

Fixed typos

parent a8007c8c
......@@ -380,7 +380,7 @@ class User extends ActiveRecord
public function scenarios()
{
return [
self::DEFAULT_SCENARIO => ['username', 'first_name', '!password']
self::SCENARIO_DEFAULT => ['username', 'first_name', '!password']
];
}
}
......@@ -396,7 +396,7 @@ $data = [
'password' => '123',
];
$user->attributes = $data;
print_r($data);
print_r($user->attributes);
```
The code above gives you:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment