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

orm set relation column name #259

This commit is contained in:
slene
2013-11-06 22:05:10 +08:00
parent 9492e4131b
commit b644665952
2 changed files with 7 additions and 4 deletions

View File

@ -150,7 +150,7 @@ func NewTag() *Tag {
type Comment struct {
Id int
Post *Post `orm:"rel(fk)"`
Post *Post `orm:"rel(fk);column(post)"`
Content string `orm:"type(text)"`
Parent *Comment `orm:"null;rel(fk)"`
Created time.Time `orm:"auto_now_add"`