SetStoragePolicy sets the "storage_policy" edge to the StoragePolicy entity.
(s *StoragePolicy)
| 183 | |
| 184 | // SetStoragePolicy sets the "storage_policy" edge to the StoragePolicy entity. |
| 185 | func (ec *EntityCreate) SetStoragePolicy(s *StoragePolicy) *EntityCreate { |
| 186 | return ec.SetStoragePolicyID(s.ID) |
| 187 | } |
| 188 | |
| 189 | // Mutation returns the EntityMutation object of the builder. |
| 190 | func (ec *EntityCreate) Mutation() *EntityMutation { |
nothing calls this directly
no test coverage detected