MCPcopy Index your code
hub / github.com/TruthHun/BookStack / Find

Method Find

models/relationship.go:43–48  ·  view source on GitHub ↗
(id int)

Source from the content-addressed store, hash-verified

41}
42
43func (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//查询指定书籍的创始人.
51func (m *Relationship) FindFounder(bookId int) (*Relationship, error) {

Callers

nothing calls this directly

Calls 1

TableNameWithPrefixMethod · 0.95

Tested by

no test coverage detected