예제 #1
0
파일: Port.php 프로젝트: ufrgs-hyman/meican
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getDevice()
 {
     return $this->hasOne(Device::className(), ['id' => 'device_id']);
 }
예제 #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getDevices()
 {
     return $this->hasMany(Device::className(), ['domain_id' => 'id']);
 }