Put the ingredients for the dough in a mixing bowl and knead well. Place in the refrigerator while the topping is being prepared.
Melt the margarine in a pan. Sauté the bacon in it, then remove it and set it aside for the time being. Then add the onions to the pan and cook for about 10 minutes. Take out and let cool down too. Mix the cream, eggs, salt and pepper in a bowl and fold in the grated cheese. Add the onions and the bacon cubes.
Roll out the cooled dough in a greased springform pan and form an edge all around. Now distribute the topping on it.
Bake in the oven at 200 ° C on the lower rack for about 35 minutes.