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