AddMetadata adds the "metadata" edges to the Metadata entity.
(m ...*Metadata)
| 1116 | |
| 1117 | // AddMetadata adds the "metadata" edges to the Metadata entity. |
| 1118 | func (fuo *FileUpdateOne) AddMetadata(m ...*Metadata) *FileUpdateOne { |
| 1119 | ids := make([]int, len(m)) |
| 1120 | for i := range m { |
| 1121 | ids[i] = m[i].ID |
| 1122 | } |
| 1123 | return fuo.AddMetadatumIDs(ids...) |
| 1124 | } |
| 1125 | |
| 1126 | // AddEntityIDs adds the "entities" edge to the Entity entity by IDs. |
| 1127 | func (fuo *FileUpdateOne) AddEntityIDs(ids ...int) *FileUpdateOne { |
nothing calls this directly
no test coverage detected