To make cream cheese pastry, process flour and butter in a food processor until mixture resembles fine breadcrumbs. Add the cream cheese and process until mixture just comes together. Transfer to a lightly floured surface. Knead until smooth. Cover with plastic wrap and place in the fridge for 20 minutes to rest.
Meanwhile, heat oil in a large non-stick frying pan over medium-high heat. Cook bacon, stirring occasionally, for 5 minutes or until almost crisp. Add leek and cook, stirring, for 2 minutes or until soft. Stir in the rosemary. Set aside to cool slightly.
Preheat oven to 200°C. Preheat a baking tray in oven. Combine the bacon mixture, ricotta, parmesan, egg and parsley in a bowl. Season with salt and pepper. Roll out the pastry on a lightly floured surface to a 30cm disc. Line the base and side of a round 22cm (base measurement) springform pan with pastry. Add the ricotta mixture and smooth the surface. Fold in the edge of the pastry to partially enclose the filling. Bake on the prepared tray for 45 minutes or until crisp.
Set aside for 5 minutes to cool slightly.