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