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
Use different column then id for DB-Loading #88
Labels
Comments
Why don't you make that an association and use the AssociationLoader example? |
@Fleick Take a look at these two links |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey everyone,
i am searching for a possibility use the Loader for other columns then the key-column to work with the following case:
I have some ContactModes and every ContactMode is either an Email or a Telephone number, the problem with the Loader is that the foreign-key is in the other table so I have to load email.contact_mode_id == self.id instead of email.id == contact_mode.email_id
Is there any possibility to call the loader use Table.column instead of Table.id for Loading?
Thanks for answer
The text was updated successfully, but these errors were encountered: