AddFile adds the "file" edges to the File entity.
(f ...*File)
| 689 | |
| 690 | // AddFile adds the "file" edges to the File entity. |
| 691 | func (euo *EntityUpdateOne) AddFile(f ...*File) *EntityUpdateOne { |
| 692 | ids := make([]int, len(f)) |
| 693 | for i := range f { |
| 694 | ids[i] = f[i].ID |
| 695 | } |
| 696 | return euo.AddFileIDs(ids...) |
| 697 | } |
| 698 | |
| 699 | // SetUserID sets the "user" edge to the User entity by ID. |
| 700 | func (euo *EntityUpdateOne) SetUserID(id int) *EntityUpdateOne { |
nothing calls this directly
no test coverage detected