func (tuo *TokenUpdateOne) Save(ctx context.Context) (*Token, error) {
	if tuo.updated_at == nil {
		v := token.UpdateDefaultUpdatedAt()
		tuo.updated_at = &v
	}
	if len(tuo.user) > 1 {
		return nil, errors.New("ent: multiple assignments on a unique edge \"user\"")
	}
	if tuo.clearedUser && tuo.user == nil {
		return nil, errors.New("ent: clearing a unique edge \"user\"")
	}
	return tuo.sqlSave(ctx)
}
// Save executes the query and returns the updated entity.
Save executes the query and returns the updated entity.
// Save executes the query and returns the updated entity .
func (tuo *TokenUpdateOne) Save(ctx context.Context) (*Token, error) {
	if tuo.updated_at == nil {
		v := token.UpdateDefaultUpdatedAt()
		tuo.updated_at = &v
	}
	if len(tuo.user) > 1 {
		return nil, errors.New("ent: multiple assignments on a unique edge \"user\"")
	}
	if tuo.clearedUser && tuo.user == nil {
		return nil, errors.New("ent: clearing a unique edge \"user\"")
	}
	return tuo.sqlSave(ctx)
}
func ( tuo * TokenUpdateOne ) Save ( ctx context . Context ) ( * Token , error ) { if tuo . updated_at == nil { v := token . UpdateDefaultUpdatedAt ( ) tuo . updated_at = & v } if len ( tuo . user ) > 1 { return nil , errors . New ( " \" \" " ) } if tuo . clearedUser && tuo . user == nil { return nil , errors . New ( " \" \" " ) } return tuo . sqlSave ( ctx ) }
Save executes the query and returns the updated entity.
Save executes the query and returns the updated entity .