Heat the oil in a large frying pan over a medium heat. Add the onion and garlic and cook for 2 minutes, or until softened.
Add in the mushrooms, thyme, bay leaves, carrots, tomato paste and cook for 2 - 3 minutes to cook out the tomato paste. Pour in the tinned tomatoes, stock and lentils along with a pinch of salt and pepper. Simmer for 10 minutes, or until the lentils are starting to split and the sauce has reduced and become rich.
Cook the pasta as per the instructions on the packet in salted boiling water and drain, reserving a little of the pasta water. Toss the pasta through the bolognese sauce, adding a little of the reserved pasta water to loosen. Serve with Parmesan grated over the top and scatter with fresh basil leaves.