AddMetadata adds the "metadata" edges to the Metadata entity.
(m ...*Metadata)
| 217 | |
| 218 | // AddMetadata adds the "metadata" edges to the Metadata entity. |
| 219 | func (fc *FileCreate) AddMetadata(m ...*Metadata) *FileCreate { |
| 220 | ids := make([]int, len(m)) |
| 221 | for i := range m { |
| 222 | ids[i] = m[i].ID |
| 223 | } |
| 224 | return fc.AddMetadatumIDs(ids...) |
| 225 | } |
| 226 | |
| 227 | // AddEntityIDs adds the "entities" edge to the Entity entity by IDs. |
| 228 | func (fc *FileCreate) AddEntityIDs(ids ...int) *FileCreate { |
nothing calls this directly
no test coverage detected