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