Fixed issue in from_obj with lowercase spelling of association type