/** * @return \yii\db\ActiveQuery */ public function getConfrontos1() { return $this->hasMany(Confronto::className(), ['vencedor' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getIdConfronto() { return $this->hasOne(Confronto::className(), ['id' => 'id_confronto']); }
/** * @return \yii\db\ActiveQuery */ public function getConfrontos() { return $this->hasMany(Confronto::className(), ['id_grupo' => 'id']); }