Bake for five minutes then set aside. While the pastry is baking warm the olive oil and sauté the onions, over a low heat, with a lid on for about twenty minutes until they are completely soft.