Хотя все данные заполнены.
Код: Выделить всё
var_dump($user->attributes);
array ()
'id' => null
'username' => string 'sdsfsdfgf' (length=9)
'auth_key' => string 'vRPqTt4ZgB8lMX8xoSdq8_W5YWYk4K77' (length=32)
'password_hash' => string '$2y$13$TLw5PXcduKDmHM/ba2.6t.3u3iTQvHGgSE52oLn2a9RHFy9XdWccm' (length=60)
'email' => string 'gsasdad@sd.asd' (length=14)
'status' => null
'created_at' => null
'updated_at' => null
'phone' => string '144233123' (length=9)
'city' => string 'qweqe' (length=5)
'address' => string 'qwewqeq' (length=7)
Код: Выделить всё
rules() {['status', 'default', 'value' => 10]}
Код: Выделить всё
behaviors() { return [
TimestampBehavior::className(),
]; }
Хотя user->save(false) все сохраняет.