Grease a pizza tray (26 cm Ø; 3.5 cm high) or springform pan. Knead 250 g flour, fat in pieces, 1 egg, 2-3 tbsp. cold water, 3 tbsp. milk and 1 pinch of salt first with the dough hooks, then quickly with your hands to a smooth dough. Cover and chill for about 30 minutes.
Finely dice the ham. Peel and finely dice the onions. Steam in hot oil for about 10 minutes until translucent. Fry the ham briefly. Season with pepper and salt if necessary. Let cool off
Grate the cheese roughly. Mix cream, 200 ml milk and 4 eggs. Season with salt and nutmeg. Wash, pluck and finely chop the parsley and marjoram
Roll out the dough on a floured work surface until round (approx. 32 cm Ø). Place in the form, press down the edge. Cut off any protruding edge. Mix onion and ham mixture with cheese and herbs. Spread on the base. Pour egg milk over it. Bake in a preheated oven (electric cooker: 175 °C/circulating air: 150 °C/gas: level 2) for approx. 1 hour until golden brown