mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 23:40:56 +00:00
fixed typo in models_boot
This commit is contained in:
parent
90999717dd
commit
caca5e37ba
@ -117,7 +117,7 @@ func bootStrap() {
|
|||||||
name := getFullName(elm)
|
name := getFullName(elm)
|
||||||
mii, ok := modelCache.getByFullName(name)
|
mii, ok := modelCache.getByFullName(name)
|
||||||
if !ok || mii.pkg != elm.PkgPath() {
|
if !ok || mii.pkg != elm.PkgPath() {
|
||||||
err = fmt.Errorf("can not found rel in field `%s`, `%s` may be miss register", fi.fullName, elm.String())
|
err = fmt.Errorf("can not find rel in field `%s`, `%s` may be miss register", fi.fullName, elm.String())
|
||||||
goto end
|
goto end
|
||||||
}
|
}
|
||||||
fi.relModelInfo = mii
|
fi.relModelInfo = mii
|
||||||
|
Loading…
Reference in New Issue
Block a user