Dice the onion and fry in the butter. Pour cream, add chopped parsley, salt,pepper, bring to a boil. Add a half of the cheese in a sauce, mix well. Add spätzle, place the mixture into the baking form and sprinkle with the remaining cheese. Bake in the oven at 200 degrees Celsius for 20 minutes.