()
| 105 | } |
| 106 | |
| 107 | func (p *Option) All() ([]*Option, error) { |
| 108 | o := orm.NewOrm() |
| 109 | var options []*Option |
| 110 | |
| 111 | _, err := o.QueryTable(p.TableNameWithPrefix()).All(&options) |
| 112 | |
| 113 | if err != nil { |
| 114 | return options, err |
| 115 | } |
| 116 | return options, nil |
| 117 | } |
| 118 | |
| 119 | func (m *Option) Init() error { |
| 120 |
no test coverage detected