Skip to content
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

fix: database variable #316

Merged
merged 22 commits into from
Oct 12, 2023
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
da009fd
Upgrade v1.13.1 (#295)
hwbrzzl Sep 10, 2023
9cf5e08
Update README
hwbrzzl Sep 10, 2023
29d822a
build(deps): bump the go-modules group with 1 update (#296)
dependabot[bot] Sep 12, 2023
db2fcd6
build(deps): bump the go-modules group with 1 update (#297)
dependabot[bot] Sep 13, 2023
9a04471
build(deps): bump the go-modules group with 1 update (#299)
dependabot[bot] Sep 15, 2023
acf84af
build(deps): bump the github-actions group with 1 update (#300)
dependabot[bot] Sep 15, 2023
144c25f
feat: add GetBytes method and test cases (#298)
devhaozi Sep 17, 2023
834276c
feat: Add interface comments (#292)
kkumar-gcc Sep 18, 2023
e35e809
build(deps): bump the go-modules group with 1 update (#301)
dependabot[bot] Sep 22, 2023
e6aaa5b
build(deps): bump the go-modules group with 1 update (#303)
dependabot[bot] Sep 23, 2023
431933a
fix:[#263] There is a path error in the filesystem module (#305)
hwbrzzl Sep 27, 2023
95f3d3a
feat: Add Fluent String helpers (#304)
kkumar-gcc Oct 2, 2023
f9d300e
fix: #267 (#306)
devhaozi Oct 3, 2023
72e221e
refactor: move mocks (#307)
devhaozi Oct 5, 2023
4a6e705
build(deps): bump the go-modules group with 1 update (#310)
dependabot[bot] Oct 6, 2023
b1c0268
build(deps): bump the github-actions group with 1 update (#312)
dependabot[bot] Oct 7, 2023
2ecb709
build(deps): bump the go-modules group with 1 update (#313)
dependabot[bot] Oct 7, 2023
1fe58aa
build(deps): bump the go-modules group with 2 updates (#315)
dependabot[bot] Oct 10, 2023
acb2b20
Fix database variable
ahmed3mar Oct 10, 2023
25ea367
Restore
ahmed3mar Oct 12, 2023
c864bba
Merge branch 'v1.13.x' of github.com:goravel/framework into patch-1
ahmed3mar Oct 12, 2023
317cadc
Fix database typo
ahmed3mar Oct 12, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion support/database/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func GetIDByReflect(t reflect.Type, v reflect.Value) any {
if t.Field(i).Name == "Model" && v.Field(i).Type().Kind() == reflect.Struct {
structField := v.Field(i).Type()
for j := 0; j < structField.NumField(); j++ {
if !structField.Field(i).IsExported() {
if !structField.Field(j).IsExported() {
continue
}
if strings.Contains(structField.Field(j).Tag.Get("gorm"), "primaryKey") {
Expand Down