Saute onion in butter for 5 minutes. Add garlic, potatoes, carrots, and celery. Saute for 5 minutes. Add stock, tomatoes, salt, pepper, and basil. Boil, reduce heat and simmer for 10 minutes. Add green beans, peas, both beans and pasta. Simmer for 10 minutes. Add parsley and serve sprinkled with cheese.