/**
  * @return \yii\db\ActiveQuery
  */
 public function getDevice()
 {
     return $this->hasOne(TblDevices::className(), ['id' => 'device_id']);
 }
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getTblDevices()
 {
     return $this->hasMany(TblDevices::className(), ['region_id' => 'id']);
 }