1- Leave the beans to soak for 12 hours. Peel the onion and slice and peel the clove of garlic. Dice the bacon and the loin of pork and keep on one side. Blanch the tomatoes, remove the skin, seeds and juice and chop. Wash the parsley, dry on a cloth and chop.
2- Drain the beans, put them in a saucepan, add the bay leaf, half the sliced onion, the clove of garlic, cover with plenty of cold water and cook on a medium heat for about an hour; season the beans with salt almost at the end of the cooking time.
3- Put the oil in a pan and fry the remaining onion until soft, add the diced bacon and loin of pork and fry until golden brown on all sides; add the chopped tomato, season with salt and pepper and continue to cook on a medium heat for about 30 minutes, stirring occasionally; add the drained beans, cook for a further 15 minutes and at the end, sprinkle with the chopped parsley. In the meantime cook the pasta in salted water until it is “al dente”, drain, add the sauce and serve hot.