1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-26 23:10:50 +00:00

Merge pull request #542 from kylemcc/develop

orm: allow unexported fields on model structs
This commit is contained in:
slene 2014-05-16 13:11:55 +08:00
commit 568c0c47f0

View File

@ -49,6 +49,9 @@ func newModelInfo(val reflect.Value) (info *modelInfo) {
for i := 0; i < ind.NumField(); i++ {
field := ind.Field(i)
sf = ind.Type().Field(i)
if sf.PkgPath != "" {
continue
}
fi, err = newFieldInfo(info, field, sf)
if err != nil {