func (etuo *EquipmentTypeUpdateOne) Save(ctx context.Context) (*EquipmentType, error) {
	if etuo.update_time == nil {
		v := equipmenttype.UpdateDefaultUpdateTime()
		etuo.update_time = &v
	}
	if len(etuo.category) > 1 {
		return nil, errors.New("ent: multiple assignments on a unique edge \"category\"")
	}
	return etuo.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 (etuo *EquipmentTypeUpdateOne) Save(ctx context.Context) (*EquipmentType, error) {
	if etuo.update_time == nil {
		v := equipmenttype.UpdateDefaultUpdateTime()
		etuo.update_time = &v
	}
	if len(etuo.category) > 1 {
		return nil, errors.New("ent: multiple assignments on a unique edge \"category\"")
	}
	return etuo.sqlSave(ctx)
}
func ( etuo * EquipmentTypeUpdateOne ) Save ( ctx context . Context ) ( * EquipmentType , error ) { if etuo . update_time == nil { v := equipmenttype . UpdateDefaultUpdateTime ( ) etuo . update_time = & v } if len ( etuo . category ) > 1 { return nil , errors . New ( " \" \" " ) } return etuo . sqlSave ( ctx ) }
Save executes the query and returns the updated entity.
Save executes the query and returns the updated entity .