Heat a splash of oil in a large pan over a medium heat, then slowly cook the whole garlic and sliced onion for 30 minutes, or until sweet and sticky – keep the lid on the pan for the first 20 minutes to keep in all the moisture, then remove for the final 10 minutes so they get a little color.