fix lỗi đồng bộ dữ liệu không xóa các dữ liệu cũ
This commit is contained in:
@@ -23,6 +23,7 @@ use Yii;
|
||||
* @property int $card_register_time
|
||||
* @property int $schedule_id
|
||||
* @property string $door_access
|
||||
* @property string $door_access_old
|
||||
*/
|
||||
class Staff extends \yii\db\ActiveRecord {
|
||||
|
||||
@@ -40,7 +41,7 @@ class Staff extends \yii\db\ActiveRecord {
|
||||
return [
|
||||
[['code', 'name', 'gender'], 'required'],
|
||||
[['code', 'card_number', 'department_id', 'birthday', 'date_in', 'created_at', 'modified_at', 'card_register_time', 'schedule_id'], 'integer'],
|
||||
[['address', 'door_access'], 'string'],
|
||||
[['address', 'door_access', 'door_access_old'], 'string'],
|
||||
[['name', 'email'], 'string', 'max' => 100],
|
||||
[['gender'], 'string', 'max' => 10],
|
||||
[['phone'], 'string', 'max' => 20],
|
||||
|
||||
Reference in New Issue
Block a user