SetStoragePolicyID sets the "storage_policy" edge to the StoragePolicy entity by ID.
(id int)
| 177 | |
| 178 | // SetStoragePolicyID sets the "storage_policy" edge to the StoragePolicy entity by ID. |
| 179 | func (ec *EntityCreate) SetStoragePolicyID(id int) *EntityCreate { |
| 180 | ec.mutation.SetStoragePolicyID(id) |
| 181 | return ec |
| 182 | } |
| 183 | |
| 184 | // SetStoragePolicy sets the "storage_policy" edge to the StoragePolicy entity. |
| 185 | func (ec *EntityCreate) SetStoragePolicy(s *StoragePolicy) *EntityCreate { |