Reject associations when class is not defined