MCPcopy
hub / github.com/crowdsecurity/crowdsec / OwnerIDs

Method OwnerIDs

pkg/database/ent/mutation.go:10558–10563  ·  view source on GitHub ↗

OwnerIDs returns the "owner" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use OwnerID instead. It exists only for internal usage by the builders.

()

Source from the content-addressed store, hash-verified

10556// Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use
10557// OwnerID instead. It exists only for internal usage by the builders.
10558func (m *MetaMutation) OwnerIDs() (ids []int) {
10559 if id := m.owner; id != nil {
10560 ids = append(ids, *id)
10561 }
10562 return
10563}
10564
10565// ResetOwner resets all changes to the "owner" edge.
10566func (m *MetaMutation) ResetOwner() {

Callers 12

createSpecMethod · 0.45
sqlSaveMethod · 0.45
sqlSaveMethod · 0.45
sqlSaveMethod · 0.45
sqlSaveMethod · 0.45
createSpecMethod · 0.45
sqlSaveMethod · 0.45
sqlSaveMethod · 0.45
createSpecMethod · 0.45
createSpecMethod · 0.45
sqlSaveMethod · 0.45
sqlSaveMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected