1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-03 18:10:19 +00:00
This commit is contained in:
astaxie
2014-04-11 16:08:43 +08:00
parent 05e5baaa9f
commit 4245521660
24 changed files with 10 additions and 47 deletions

View File

@ -293,7 +293,7 @@ func (o *orm) queryRelated(md interface{}, name string) (*modelInfo, *fieldInfo,
}
if qs == nil {
panic(fmt.Errorf("<Ormer> name `%s` for model `%s` is not an available rel/reverse field"))
panic(fmt.Errorf("<Ormer> name `%s` for model `%s` is not an available rel/reverse field", md, name))
}
return mi, fi, ind, qs
@ -441,8 +441,6 @@ func (o *orm) Driver() Driver {
func (o *orm) GetDB() dbQuerier {
panic(ErrNotImplement)
// not enough
return o.db
}
// create new orm