Skip to content

Unscoped() does not work with generics api? #7674

@vlanf

Description

@vlanf

Your Question

I tried to use .Unscoped() with generics API, but db not updates. Rewrote with classic API and everything works fine.
Here are changes that fixed my problem in code:

Image

The document you expected this should be explained

https://gorm.io/docs/the_generics_way.html
https://gorm.io/docs/update.html

Expected answer

Is it expected behavior, and Unscoped() does not work with generics, or is it a bug? If I missing something from docs, please point me, I did not find any info about this case.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions