SetStoragePolicy sets the "storage_policy" edge to the StoragePolicy entity.
(s *StoragePolicy)
| 723 | |
| 724 | // SetStoragePolicy sets the "storage_policy" edge to the StoragePolicy entity. |
| 725 | func (euo *EntityUpdateOne) SetStoragePolicy(s *StoragePolicy) *EntityUpdateOne { |
| 726 | return euo.SetStoragePolicyID(s.ID) |
| 727 | } |
| 728 | |
| 729 | // Mutation returns the EntityMutation object of the builder. |
| 730 | func (euo *EntityUpdateOne) Mutation() *EntityMutation { |
nothing calls this directly
no test coverage detected