func (tu *TodoUpdate) ClearUser() *TodoUpdate {
	tu.mutation.ClearUser()
	return tu
}
ClearUser clears the "user" edge to the User entity.
package ent
import (
	"context"
	"fmt"
	"entgo.io/contrib/entproto/internal/todo/ent/predicate"
	"entgo.io/contrib/entproto/internal/todo/ent/todo"
	"entgo.io/contrib/entproto/internal/todo/ent/user"
	"entgo.io/ent/dialect/sql"
	"entgo.io/ent/dialect/sql/sqlgraph"
	"entgo.io/ent/schema/field"
)
type TodoUpdate struct {
	config
	hooks    []Hook
	mutation *TodoMutation
}
func (tu *TodoUpdate) Where(ps ...predicate.Todo) *TodoUpdate {
	tu.mutation.Where(ps...)
	return tu
}
func (tu *TodoUpdate) SetTask(s string) *TodoUpdate {
	tu.mutation.SetTask(s)
	return tu
}
func (tu *TodoUpdate) SetStatus(t todo.Status) *TodoUpdate {
	tu.mutation.SetStatus(t)
	return tu
}
func (tu *TodoUpdate) SetNillableStatus(t *todo.Status) *TodoUpdate {
	if t != nil {
		tu.SetStatus(*t)
	}
	return tu
}
func (tu *TodoUpdate) SetUserID(id int) *TodoUpdate {
	tu.mutation.SetUserID(id)
	return tu
}
func (tu *TodoUpdate) SetNillableUserID(id *int) *TodoUpdate {
	if id != nil {
		tu = tu.SetUserID(*id)
	}
	return tu
}
func (tu *TodoUpdate) SetUser(u *User) *TodoUpdate {
	return tu.SetUserID(u.ID)
}
func (tu *TodoUpdate) Mutation() *TodoMutation {
	return tu.mutation
}