We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c58fdb commit e123c06Copy full SHA for e123c06
nullable.go
@@ -152,7 +152,8 @@ func (t *NullableRelationship[T]) Set(value T) {
152
*t = map[bool]T{true: value}
153
}
154
155
-// Set sets the underlying value to a given value
+// SetInterface sets the underlying value from an empty interface,
156
+// performing a type assertion to T.
157
func (t *NullableRelationship[T]) SetInterface(value interface{}) {
158
t.Set(value.(T))
159
0 commit comments