(bookId, memberId int)
| 97 | } |
| 98 | |
| 99 | func (m *Relationship) FindByBookIdAndMemberId(bookId, memberId int) (*Relationship, error) { |
| 100 | o := orm.NewOrm() |
| 101 | err := o.QueryTable(m.TableNameWithPrefix()).Filter("book_id", bookId).Filter("member_id", memberId).One(m) |
| 102 | return m, err |
| 103 | } |
| 104 | |
| 105 | func (m *Relationship) Insert() error { |
| 106 | o := orm.NewOrm() |
no test coverage detected