Preheat the oven to Gas 5, 190°C, 375°F.
Heat the oil in a frying pan and fry the onions for 4 to 5 minutes until transparent. Place in a bowl and add all the remaining ingredients. Mix and season well.
Place in a shallow, ovenproof dish and cook for 35-40 minutes until golden.