func (au *AttachmentUpdate) AddRecipients(u ...*User) *AttachmentUpdate {
	ids := make([]int, len(u))
	for i := range u {
		ids[i] = u[i].ID
	}
	return au.AddRecipientIDs(ids...)
}
AddRecipients adds the "recipients" edges to the User entity.
package ent
import (
	"context"
	"fmt"
	"entgo.io/contrib/entproto/internal/todo/ent/attachment"
	"entgo.io/contrib/entproto/internal/todo/ent/predicate"
	"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 AttachmentUpdate struct {
	config
	hooks    []Hook
	mutation *AttachmentMutation
}
func (au *AttachmentUpdate) Where(ps ...predicate.Attachment) *AttachmentUpdate {
	au.mutation.Where(ps...)
	return au
}
func (au *AttachmentUpdate) SetUserID(id int) *AttachmentUpdate {
	au.mutation.SetUserID(id)
	return au
}
func (au *AttachmentUpdate) SetNillableUserID(id *int) *AttachmentUpdate {
	if id != nil {
		au = au.SetUserID(*id)
	}
	return au
}
func (au *AttachmentUpdate) SetUser(u *User) *AttachmentUpdate {
	return au.SetUserID(u.ID)
}
func (au *AttachmentUpdate) AddRecipientIDs(ids ...int) *AttachmentUpdate {
	au.mutation.AddRecipientIDs(ids...)
	return au
}