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

Proposed fix: Fix through associations on join tables #83

Closed
pcsanwald opened this issue Nov 10, 2017 · 7 comments
Closed

Proposed fix: Fix through associations on join tables #83

pcsanwald opened this issue Nov 10, 2017 · 7 comments

Comments

@pcsanwald
Copy link
Contributor

The current problem with adding attributes to join tables is due to the following change in sequelize:

v3:
group.addUser( alice, { role: 'member' });

v4:
group.addUser( alice, { through: { role: 'member' }});

I've forked the repo, upgraded sequelize, made the required fix. I'm happy to open a PR for this repo, if you are ok with dropping support for sequelize v3. Thoughts?

@sevarubbo
Copy link

Please do!

@seahyc
Copy link

seahyc commented Nov 16, 2017

Yup, would appreciate it greatly!

@hugodes
Copy link
Contributor

hugodes commented Nov 28, 2017

Yes, we're left hanging on our update to v4, please submit a PR.
@pcsanwald could you provide a link to your fork so we can use it on our project in the meantime ?
cheers

@pcsanwald
Copy link
Contributor Author

pcsanwald commented Nov 28, 2017 via email

@pcsanwald
Copy link
Contributor Author

@sevarubbo @hugodes @seahyc this is addressed in PR #84

@hugodes
Copy link
Contributor

hugodes commented Nov 28, 2017

@domasx2 could you release this with a version bump please ?

@domasx2
Copy link
Owner

domasx2 commented Nov 28, 2017

Done, 0.7.0

@domasx2 domasx2 closed this as completed Nov 28, 2017
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

No branches or pull requests

5 participants