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