Make the pastry. Tip the flour, butter and salt into a food processor and process briefly, add the egg and process until it forms small clumps. Remove and form into a ball, then wrap in cling film and chill for about 30 minutes. Roll out to fit a 4cm deep, 23cm round loose-bottomed flan tin. Prick the base and chill for 30 minutes.
Preheat the oven to 200C/gas 6/fan 180C. Cook the broad beans in boiling salted water for 3-4 minutes until just tender, drain and refresh in cold water. Pat dry.
Bake the pastry case blind for 15 minutes. Remove from the foil and beans and bake for a further 5 minutes. Cool slightly. Reduce the oven to 190C/gas 5/fan170C.
Scatter the beans and ham in the pastry case and crumble the cheese on top. Whisk together the eggs, crème fraîche and milk and season with salt and pepper. Pour over the beans and bake for 30-40 minutes until golden brown and puffed. Serve warm, with salad.