Associations detection from model