AddFileIDs adds the "files" edge to the File entity by IDs.
(ids ...int)
| 230 | |
| 231 | // AddFileIDs adds the "files" edge to the File entity by IDs. |
| 232 | func (spc *StoragePolicyCreate) AddFileIDs(ids ...int) *StoragePolicyCreate { |
| 233 | spc.mutation.AddFileIDs(ids...) |
| 234 | return spc |
| 235 | } |
| 236 | |
| 237 | // AddFiles adds the "files" edges to the File entity. |
| 238 | func (spc *StoragePolicyCreate) AddFiles(f ...*File) *StoragePolicyCreate { |