(id int)
| 41 | } |
| 42 | |
| 43 | func (m *Relationship) Find(id int) (*Relationship, error) { |
| 44 | o := orm.NewOrm() |
| 45 | |
| 46 | err := o.QueryTable(m.TableNameWithPrefix()).Filter("relationship_id", id).One(m) |
| 47 | return m, err |
| 48 | } |
| 49 | |
| 50 | //查询指定书籍的创始人. |
| 51 | func (m *Relationship) FindFounder(bookId int) (*Relationship, error) { |
nothing calls this directly
no test coverage detected