1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-11 08:21:01 +00:00

orm support custom multi unique / index

This commit is contained in:
slene
2013-08-22 21:19:58 +08:00
parent 02d2990576
commit 4c061feddf
4 changed files with 90 additions and 1 deletions

View File

@ -31,7 +31,7 @@ func newModelInfo(val reflect.Value) (info *modelInfo) {
ind := reflect.Indirect(val)
typ := ind.Type()
info.addrField = ind.Addr()
info.addrField = val
info.name = typ.Name()
info.fullName = getFullName(typ)