Peel the onions and potatoes. Onions cut into thin quarters of rings, potatoes-cubes with a side of 2 cm. Fry the onion in vegetable oil, 5 minutes.Add the potatoes, fry for another 5-7 minutes. Pepper, a little salt and remove from heat.
Preheat oven to 170 °C. for dough, beat eggs until fluffy, mix with mayonnaise and cream. Add cheese, stir until smooth.
Mix 200 g of flour, a pinch of salt and baking powder and combine with cheese mass. Knead a homogeneous dough, it should be the density of sour cream. If you get watery, add a little more flour.
Pour little batter to the bottom of the high-temperature shape with a diameter of 22 cm, just to close the bottom. Lay out the potatoes and onions, pour the remaining dough. Bake in the oven until Golden brown, 35-40 minutes. This pie tastes best cold.