AddFiles adds the "files" edges to the File entity.
(f ...*File)
| 236 | |
| 237 | // AddFiles adds the "files" edges to the File entity. |
| 238 | func (spc *StoragePolicyCreate) AddFiles(f ...*File) *StoragePolicyCreate { |
| 239 | ids := make([]int, len(f)) |
| 240 | for i := range f { |
| 241 | ids[i] = f[i].ID |
| 242 | } |
| 243 | return spc.AddFileIDs(ids...) |
| 244 | } |
| 245 | |
| 246 | // AddEntityIDs adds the "entities" edge to the Entity entity by IDs. |
| 247 | func (spc *StoragePolicyCreate) AddEntityIDs(ids ...int) *StoragePolicyCreate { |
nothing calls this directly
no test coverage detected