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