update filter dữ liệu cửa trong Cấp quyền truy cập

This commit is contained in:
2020-12-10 10:26:24 +07:00
parent ecd76e6c58
commit 9a13c5b677
6 changed files with 128 additions and 8 deletions

View File

@@ -67,4 +67,8 @@ class Door extends \yii\db\ActiveRecord {
return $results;
}
public function getDevice() {
return Device::findOne($this->device_id);
}
}