Cut the onions into thin slices, then in a large skillet, heat the butter stir in the onions, put salt and pepper and let the onions get golden brown. In a bowl mix the cream with the teaspoon of flour, then take the pan, mix well with a wooden spatula. Remove from heat, pour the mixture into a bowl, cool for 5 minutes, add the yolks, mix well, add into the pastry dough shell, cook for 45 minutes over high heat.