Skip to content

fix: groupedLimit on paranoid junction table - #6833

Merged
janmeier merged 2 commits into
v3from
fix-groupLimit
Nov 10, 2016
Merged

janmeier merged 2 commits into
v3from
fix-groupLimit

Conversation

@sushantdhiman

@sushantdhiman sushantdhiman commented Nov 10, 2016 •

Copy link
Copy Markdown
Contributor

Pull Request check-list

  • 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?
  • 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

When groupedLimit was used on a N:M relationship whoes junction/through model was paranoid, queries generated didn't include the paranoid clause. I have fixed it by applying paranoid clause when we have this case

Also BelongsToMany options incorrectly uses source model options, this is fixed as well

@mention-bot

Copy link
Copy Markdown

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

@codecov-io

Copy link
Copy Markdown

Current coverage is 93.85% (diff: 100%)

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

Powered by Codecov. Last update 7c86690...3f53a11

@janmeier
janmeier merged commit 47d8bae into v3 Nov 10, 2016
@janmeier
janmeier deleted the fix-groupLimit branch November 10, 2016 12:36
@janmeier

Copy link
Copy Markdown
Member

v3.25.0

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