-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hydrate trait #73
base: master
Are you sure you want to change the base?
Hydrate trait #73
Conversation
I don't think this is fully baked as some references, such as related_party, can point to many classes downstream. Currently I'm only passing a HREF into the closure, might need to pass more information so we can hydrate the correct object. |
I think there's a two step process required here and thus two different traits.
Currently 'HydrateTrait' only addresses point 2. Suggest naming 2. trait as HydrateRef and 1. as Hydrate. |
This needs some more work and ideally requires meta-fields implemented for the references. |
Provide a common trait around a hydrate function which uses a closure to retrieve referenced objects.