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

orm: inline struct relate test case

This commit is contained in:
miraclesu
2016-03-13 21:01:56 +08:00
parent d90195061f
commit dcfcb2789e
2 changed files with 51 additions and 0 deletions

View File

@ -375,6 +375,18 @@ func NewInLine() *InLine {
return new(InLine)
}
type InLineOneToOne struct {
// Common Fields
ModelBase
Note string
InLine *InLine `orm:"rel(fk);column(inline)"`
}
func NewInLineOneToOne() *InLineOneToOne {
return new(InLineOneToOne)
}
var DBARGS = struct {
Driver string
Source string