Melt the margarine in a frypan and add the chopped onions. Cook the onions until just before they begin to turn golden. Remove from the heat and stir in the sweet paprika, hot paprika, chilli flakes and salt to taste.
Put the meat in a colander or large strainer and pour boiling water over it (to partially cook it) then allow to cool. Place meat in a dish add salt to taste, cumin and vinegar. Mix and add the meat to the onion mixture. Mix well and place on a flat to dish to cool and harden.
Cut puff pastry dough into 10 rounds. Place a spoonful of the meat mixture on each round; add some of the raisins, olives and chopped hard boiled egg. Avoid reaching the edges of the pastry with the filling because its oiliness will prevent good sealing.
Slightly wet the edge of the pastry, fold in two and stick edges together. The shape should resemble that of a half-moon. You should have a 1.5 cm flat edge of pastry to work with. Seal by twisting edge, step by step, between thumb and index finger, making sure to add pressure before releasing the pinch and moving on to the next curl. Other sealing procedures like pinching without curling or using a fork to seal will not prevent juice leaks during baking, and empanadas must be juicy.
Preheat oven to 180 degrees C. Place empanadas on a baking tray lined with baking paper. Be sure to prick each empanada with a fork near the curl to allow steam to escape during baking. Glaze with egg and bake until golden, about 20 to 30 minutes.