Get the class of associations instead of assuming the class name is the same as the field name