Cook the spaghetti in salted water (according to the instructions on the packet) and drain.
Peel the onion and chop finely. Halve the cherry tomatoes. Stew both in a little oil for about 5 minutes, sprinkling with a little (about 1 teaspoon) sugar. The sugar caramelises the tomatoes slightly. Press the garlic, add to the pan and sauté briefly. Add the tomato paste and the grainy cream cheese and stir until everything has combined into a smooth mass. Season to taste with salt and pepper.
Add the pasta to the pan and mix everything together. Fold in the chopped basil (the more the better) and sprinkle the spaghetti with grated Parmesan on top.
A refreshing dish that can be prepared quickly and easily, and not just in summer.