Skip to content
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

issue 127 no sourceKey param in AssociationOptions interface #128

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

barbala4o1
Copy link

@barbala4o1 barbala4o1 commented Sep 14, 2017

Added the sourceKey param to the AssociationOprions interface. That when we can specify which column of the srouce table is a foreignKey,

Closes #127

@barbala4o1 barbala4o1 changed the title issue 127 no sourceKey param in hasManyOptions interface issue 127 no sourceKey param in AssociationOptions interface Sep 14, 2017
@@ -60,6 +60,11 @@ export interface AssociationOptions {
hooks?: boolean;

/**
* The name of the foreign key in the source table
*/
sourceKey?: string | ForeignKeyOptions;
Copy link
Collaborator

@felixfbecker felixfbecker Sep 14, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this this available for all of BelongsTo, HasOne, HasMany and BelongsToMany?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants