Custom code for getting all associations

Thank you for taking the time to update that for me - works a treat