Cook the spaghetti until al dente.
In the meantime, chop the onion and sauté in a saucepan over medium heat with oil, then deglaze with the strained tomatoes.
While the sauce is heating, season with tomato paste, salt and pepper and possibly the cream. Serve the drained spaghetti with the sauce and freshly grated Parmesan.