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