Skip to content

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

Merged
janmeier merged 6 commits into
sequelize:masterfrom
elasticsearcher:master
Feb 1, 2017
Merged

janmeier merged 6 commits into
sequelize:masterfrom
elasticsearcher:master

Conversation

@elasticsearcher

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

@codecov-io

codecov-io commented Jan 30, 2017 •

Copy link
Copy Markdown

Codecov Report

Merging #7165 into master 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 15f6ad9...1c554e5. Read the comment docs.

@janmeier
janmeier merged commit d4f742a into sequelize:master Feb 1, 2017
nadrane pushed a commit to nadrane/sequelize that referenced this pull request Feb 2, 2017
mkaufmaner pushed a commit to mkaufmaner/sequelize that referenced this pull request Apr 25, 2017
…equelize#7159 (sequelize#7165)

* Fixes creation of polymorphic belongToMany associations in one step

* Fix test failure for MSSQL

* Fix tests
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.

3 participants