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