sentence: middle ages afonso henriques in battle , near the roman bridge in sacavém according to an old legend , it was near the bank of the trancão that the mythical battle of sacavém river took place , between king afonso i of portugal and the moors , in october 1147 .