Sauté onion in half the oil until softened and barely golden. Add garlic and cook until soft. Leave to cool. Place beans in a food processor with parsley, add cooled onion mixture and whizz to a paste. Add yoghurt, lemon juice and remaining oil and whizz again. Season to taste.