Skip to content

Fixes creation of polymorphic belongToMany associations in one step #7159 - #7181

Merged
janmeier merged 2 commits into
sequelize:v3from
elasticsearcher:v3
Feb 1, 2017
Merged

janmeier merged 2 commits into
sequelize:v3from
elasticsearcher:v3

Conversation

@elasticsearcher

@elasticsearcher elasticsearcher commented Feb 1, 2017 •

Copy link
Copy Markdown
Contributor

Pull Request check-list

Please make sure to review and check all of these items:

  • Does npm run test or npm run test-DIALECT pass with this change (including linting)?
  • Does your issue contain a link to existing issue (Closes #[issue]) or a description of the issue you are solving?
  • Have you added new tests to prevent regressions?
  • Is a documentation update included (if this change modifies existing APIs, or introduces new ones)?
  • Have you added an entry under Future in the changelog?

NOTE: these things are not required to open a PR and can be done afterwards / while the PR is open.

Description of change

Fixes the issue I described in the comments of #7159, which is exactly the same issue except it's located in a different code path.

The following example from the documentation mentions the creation of associations with belongsToMany relations in one step, but it didn't actually work. This PR makes it work.
http://docs.sequelizejs.com/en/latest/docs/associations/#creating-elements-of-a-hasmany-or-belongstomany-association

@mention-bot

Copy link
Copy Markdown

@elasticsearcher, thanks for your PR! By analyzing the history of the files in this pull request, we identified @BridgeAR, @mickhansen and @janmeier to be potential reviewers.

@codecov-io

Copy link
Copy Markdown

Codecov Report

Merging #7181 into v3 will increase coverage by <.01%.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 98abec3...c841585. Read the comment docs.

@janmeier
janmeier merged commit 7fa00e0 into sequelize:v3 Feb 1, 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

Successfully merging this pull request may close these issues.

4 participants