Skip to content

Issue 6054: Unscoped not working with PreLoad on Joins #6058

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

Merged
merged 2 commits into from
Feb 18, 2023

Conversation

manstis
Copy link
Contributor

@manstis manstis commented Feb 14, 2023

See #6054

  • Do only one thing
  • Non breaking API changes
  • Tested

What did this pull request do?

Fixed use of Unscoped() on Preload(..).

User Case Description

Retrieval of models with Unscoped() and Preload(..) does not include soft-deleted records.

Use of Unscoped() should include soft-deleted records.

Sorry, something went wrong.

Copy link
Member

@a631807682 a631807682 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix the code format by gofumpt. https://github.com/go-gorm/gorm/pull/6058/files

@manstis
Copy link
Contributor Author

manstis commented Feb 15, 2023

I ran gofumpt -w over the whole codebase. It appears there were other files in need of formatting too.

@manstis
Copy link
Contributor Author

manstis commented Feb 18, 2023

@jinzhu Thank-you for merging.

Could you please advise when you next expect to release gorm including this fix? I have a dependency on the fix and am curious as to when I'll be able to complete my work.

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.

None yet

3 participants