1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-03 17:10:18 +00:00

orm add atomic set value

This commit is contained in:
slene
2013-10-09 20:28:54 +08:00
parent 278f8eb13e
commit bf3830b6f0
4 changed files with 86 additions and 5 deletions

View File

@ -77,6 +77,7 @@ type User struct {
Profile *Profile `orm:"null;rel(one);on_delete(set_null)"`
Posts []*Post `orm:"reverse(many)" json:"-"`
ShouldSkip string `orm:"-"`
Nums int
}
func (u *User) TableIndex() [][]string {