You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This operation will continue to update the updated_at field with value of object. Is this behavior what the designer intended? I suspect it might not be, and I also don't think it's a good idea. Because this behavior is certainly an unexpected for developer. All right, i have to query docs to find a reasonable statement from administrtor, this is not a good experience.
Note that the Unscope API is not under discussion here.
What did you expect to see?
If developer called FieldsEx API to exclude updated_at fields or any other, which all should not be continue to controll with select/save/update operation.
The text was updated successfully, but these errors were encountered:
gqcn
changed the title
gogf/gf/v2/database/gdb: the auto update of updated_at` should not conflict with FieldsEx API
database/gdb: FieldsEx feature conflicts with soft time feature in soft time fields updating
Sep 13, 2024
gqcn
added
the
done
This issue is done, which may be release in next version.
label
Sep 13, 2024
Go version
1.21.12
GoFrame version
v2.7.2
Can this bug be reproduced with the latest release?
Option Yes
What did you do?
Snippet:
dao.XXX.GetDB(ctx).Where("id", id).FieldsEx("updated_at").Update(XXXObj);
What did you see happen?
This operation will continue to update the
updated_at
field with value of object. Is this behavior what the designer intended? I suspect it might not be, and I also don't think it's a good idea. Because this behavior is certainly an unexpected for developer. All right, i have to query docs to find areasonable
statement from administrtor, this is not a good experience.Note that the
Unscope
API is not under discussion here.What did you expect to see?
If developer called FieldsEx API to exclude
updated_at
fields or any other, which all should not be continue to controll with select/save/update operation.The text was updated successfully, but these errors were encountered: