Skip to content

fix: pivot table composite key can be in any order#536

Merged
kiaking merged 1 commit into
vuex-orm:masterfrom
eemelipa:master
Jan 27, 2020
Merged

fix: pivot table composite key can be in any order#536
kiaking merged 1 commit into
vuex-orm:masterfrom
eemelipa:master

Conversation

@eemelipa

@eemelipa eemelipa commented Jan 2, 2020

Copy link
Copy Markdown
Contributor

There should not be restrictions in which order pivot tables composite key fields are.

BelongsToMany#createPivotRecord assumed that relates-to tables key was always first. Other parts of the code used correct order => created issues with store indexes.

@codecov

codecov Bot commented Jan 2, 2020

Copy link
Copy Markdown

Codecov Report

Merging #536 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #536   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          46     46           
  Lines        1843   1845    +2     
  Branches      261    263    +2     
=====================================
+ Hits         1843   1845    +2
Impacted Files Coverage Δ
src/attributes/relations/BelongsToMany.ts 100% <100%> (ø) ⬆️

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 db0d7b9...6b0fe34. Read the comment docs.

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