/** * @return \yii\db\ActiveQuery */ public function getTypes() { return $this->hasOne(Tbtype::className(), ['ID' => 'type']); }