MCPcopy Create free account
hub / github.com/TruthHun/BookStack / FindByBookIdAndMemberId

Method FindByBookIdAndMemberId

models/relationship.go:99–103  ·  view source on GitHub ↗
(bookId, memberId int)

Source from the content-addressed store, hash-verified

97}
98
99func (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
105func (m *Relationship) Insert() error {
106 o := orm.NewOrm()

Callers 4

isReadableFunction · 0.80
RemoveAttachmentMethod · 0.80
CopyMethod · 0.80
isBookOwnerMethod · 0.80

Calls 1

TableNameWithPrefixMethod · 0.95

Tested by

no test coverage detected