/** * @return \yii\db\ActiveQuery */ public function getApostas() { return $this->hasMany(Aposta::className(), ['id_confronto' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getIdAposta() { return $this->hasOne(Aposta::className(), ['id' => 'id_aposta']); }