Nonnas Beans

1kg beans
1 onion
2 garlic
250ml wine
2 vegetable stock cubes
1 tablespoon tomato paste