func (fpuo *FloorPlanUpdateOne) Save(ctx context.Context) (*FloorPlan, error) {
	if fpuo.update_time == nil {
		v := floorplan.UpdateDefaultUpdateTime()
		fpuo.update_time = &v
	}
	if len(fpuo.location) > 1 {
		return nil, errors.New("ent: multiple assignments on a unique edge \"location\"")
	}
	if len(fpuo.reference_point) > 1 {
		return nil, errors.New("ent: multiple assignments on a unique edge \"reference_point\"")
	}
	if len(fpuo.scale) > 1 {
		return nil, errors.New("ent: multiple assignments on a unique edge \"scale\"")
	}
	if len(fpuo.image) > 1 {
		return nil, errors.New("ent: multiple assignments on a unique edge \"image\"")
	}
	return fpuo.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 (fpuo *FloorPlanUpdateOne) Save(ctx context.Context) (*FloorPlan, error) {
	if fpuo.update_time == nil {
		v := floorplan.UpdateDefaultUpdateTime()
		fpuo.update_time = &v
	}
	if len(fpuo.location) > 1 {
		return nil, errors.New("ent: multiple assignments on a unique edge \"location\"")
	}
	if len(fpuo.reference_point) > 1 {
		return nil, errors.New("ent: multiple assignments on a unique edge \"reference_point\"")
	}
	if len(fpuo.scale) > 1 {
		return nil, errors.New("ent: multiple assignments on a unique edge \"scale\"")
	}
	if len(fpuo.image) > 1 {
		return nil, errors.New("ent: multiple assignments on a unique edge \"image\"")
	}
	return fpuo.sqlSave(ctx)
}
func ( fpuo * FloorPlanUpdateOne ) Save ( ctx context . Context ) ( * FloorPlan , error ) { if fpuo . update_time == nil { v := floorplan . UpdateDefaultUpdateTime ( ) fpuo . update_time = & v } if len ( fpuo . location ) > 1 { return nil , errors . New ( " \" \" " ) } if len ( fpuo . reference_point ) > 1 { return nil , errors . New ( " \" \" " ) } if len ( fpuo . scale ) > 1 { return nil , errors . New ( " \" \" " ) } if len ( fpuo . image ) > 1 { return nil , errors . New ( " \" \" " ) } return fpuo . sqlSave ( ctx ) }
Save executes the query and returns the updated entity.
Save executes the query and returns the updated entity .