AddDirectLinkIDs adds the "direct_links" edge to the DirectLink entity by ids.
(ids ...int)
| 3946 | |
| 3947 | // AddDirectLinkIDs adds the "direct_links" edge to the DirectLink entity by ids. |
| 3948 | func (m *FileMutation) AddDirectLinkIDs(ids ...int) { |
| 3949 | if m.direct_links == nil { |
| 3950 | m.direct_links = make(map[int]struct{}) |
| 3951 | } |
| 3952 | for i := range ids { |
| 3953 | m.direct_links[ids[i]] = struct{}{} |
| 3954 | } |
| 3955 | } |
| 3956 | |
| 3957 | // ClearDirectLinks clears the "direct_links" edge to the DirectLink entity. |
| 3958 | func (m *FileMutation) ClearDirectLinks() { |
nothing calls this directly
no outgoing calls
no test coverage detected