Heat olive oil in a large saucepan and add the onion,carrots, leak, celery. Leave them like this for 3 minutes and add the cabbage, beans, half a liter of water, salt and pepper and let it simmer for about an hour.
With a pierced spoon take off the beans and mash them in a mixer with the cups of the broth. Add the mash bean again in the saucepan, add the pasta and some water. Taste it to see if you like some extra salt and let it simmer till pasta is ready.