putting associations in attributes_cache