AddEntityIDs adds the "entities" edge to the Entity entity by IDs.
(ids ...int)
| 245 | |
| 246 | // AddEntityIDs adds the "entities" edge to the Entity entity by IDs. |
| 247 | func (spc *StoragePolicyCreate) AddEntityIDs(ids ...int) *StoragePolicyCreate { |
| 248 | spc.mutation.AddEntityIDs(ids...) |
| 249 | return spc |
| 250 | } |
| 251 | |
| 252 | // AddEntities adds the "entities" edges to the Entity entity. |
| 253 | func (spc *StoragePolicyCreate) AddEntities(e ...*Entity) *StoragePolicyCreate { |