Preheat the oven to 200C.
Add the onions to a baking dish along with the olive oil, sundried tomatoes, balsamic vinegar, sugar, oregano, chilli flakes, smoked paprika and mix well so all the onions are coated.
Add the garlic to the middle of the dish and drizzle a little olive oil over the top. Cover the dish with tin foil and place in the oven to bake for 1 hour (stir half way through)
Meanwhile, cook the pasta according to packet instructions.
Remove the dish from the oven and squeeze out the garlic cloves, discarding the skins. Add in the white beans, lemon juice, vegan cream, parsley and mix.
Add the cooked pasta along with a splash of pasta water and stir. Serve and enjoy!