Ejemplo n.º 1
0
 public function actionGetByPort($id)
 {
     $data = Port::find()->where(['id' => $id])->select(['id', 'device_id'])->one()->getDevice()->select(['id', 'network_id'])->one()->getNetwork()->one();
     $temp = Json::encode($data);
     Yii::trace($temp);
     return $temp;
 }