func (wmfc *WithModifiedFieldCreate) SetNillableOwnerID(id *int) *WithModifiedFieldCreate {
	if id != nil {
		wmfc = wmfc.SetOwnerID(*id)
	}
	return wmfc
}
SetNillableOwnerID sets the "owner" edge to the User entity by ID if the given value is not nil.
package ent
import (
	"context"
	"errors"
	"fmt"
	"entgo.io/contrib/schemast/internal/mutatetest/ent/user"
	"entgo.io/contrib/schemast/internal/mutatetest/ent/withmodifiedfield"
	"entgo.io/ent/dialect/sql/sqlgraph"
	"entgo.io/ent/schema/field"
)
type WithModifiedFieldCreate struct {
	config
	mutation *WithModifiedFieldMutation
	hooks    []Hook
}
func (wmfc *WithModifiedFieldCreate) SetName(s string) *WithModifiedFieldCreate {
	wmfc.mutation.SetName(s)
	return wmfc
}
func (wmfc *WithModifiedFieldCreate) SetOwnerID(id int) *WithModifiedFieldCreate {
	wmfc.mutation.SetOwnerID(id)
	return wmfc
}