/** * @return \yii\db\ActiveQuery */ public function getVirtual() { return $this->hasOne(Virtual::className(), ['id' => 'virtual_id']); }