568c0c47 by slene

Merge pull request #542 from kylemcc/develop

orm: allow unexported fields on model structs
2 parents 2629de28 4785ac14
...@@ -49,6 +49,9 @@ func newModelInfo(val reflect.Value) (info *modelInfo) { ...@@ -49,6 +49,9 @@ func newModelInfo(val reflect.Value) (info *modelInfo) {
49 for i := 0; i < ind.NumField(); i++ { 49 for i := 0; i < ind.NumField(); i++ {
50 field := ind.Field(i) 50 field := ind.Field(i)
51 sf = ind.Type().Field(i) 51 sf = ind.Type().Field(i)
52 if sf.PkgPath != "" {
53 continue
54 }
52 fi, err = newFieldInfo(info, field, sf) 55 fi, err = newFieldInfo(info, field, sf)
53 56
54 if err != nil { 57 if err != nil {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!