Function getAssociations