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