fix tính năng luôn mở , luôn đóng
This commit is contained in:
@@ -12,6 +12,8 @@ use Yii;
|
||||
* @property string $name
|
||||
* @property int $code
|
||||
* @property int $duration
|
||||
* @property int $always_open
|
||||
* @property int $always_close
|
||||
* @property int $created_at
|
||||
* @property int $modified_at
|
||||
*/
|
||||
@@ -30,7 +32,7 @@ class Door extends \yii\db\ActiveRecord {
|
||||
public function rules() {
|
||||
return [
|
||||
[['device_id', 'name', 'code'], 'required'],
|
||||
[['device_id', 'code', 'created_at', 'modified_at', 'duration'], 'integer'],
|
||||
[['device_id', 'code', 'created_at', 'modified_at', 'duration', 'always_open', 'always_close'], 'integer'],
|
||||
[['name'], 'string', 'max' => 100],
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user