relation object class created to get the scoped relation on any class