func (fpu *FloorPlanUpdate) Save(ctx context.Context) (int, error) {
	if fpu.update_time == nil {
		v := floorplan.UpdateDefaultUpdateTime()
		fpu.update_time = &v
	}
	if len(fpu.location) > 1 {
		return 0, errors.New("ent: multiple assignments on a unique edge \"location\"")
	}
	if len(fpu.reference_point) > 1 {
		return 0, errors.New("ent: multiple assignments on a unique edge \"reference_point\"")
	}
	if len(fpu.scale) > 1 {
		return 0, errors.New("ent: multiple assignments on a unique edge \"scale\"")
	}
	if len(fpu.image) > 1 {
		return 0, errors.New("ent: multiple assignments on a unique edge \"image\"")
	}
	return fpu.sqlSave(ctx)
}
// Save executes the query and returns the number of rows/vertices matched by this operation.
Save executes the query and returns the number of rows/vertices matched by this operation.
// Save executes the query and returns the number of rows / vertices matched by this operation .
func (fpu *FloorPlanUpdate) Save(ctx context.Context) (int, error) {
	if fpu.update_time == nil {
		v := floorplan.UpdateDefaultUpdateTime()
		fpu.update_time = &v
	}
	if len(fpu.location) > 1 {
		return 0, errors.New("ent: multiple assignments on a unique edge \"location\"")
	}
	if len(fpu.reference_point) > 1 {
		return 0, errors.New("ent: multiple assignments on a unique edge \"reference_point\"")
	}
	if len(fpu.scale) > 1 {
		return 0, errors.New("ent: multiple assignments on a unique edge \"scale\"")
	}
	if len(fpu.image) > 1 {
		return 0, errors.New("ent: multiple assignments on a unique edge \"image\"")
	}
	return fpu.sqlSave(ctx)
}
func ( fpu * FloorPlanUpdate ) Save ( ctx context . Context ) ( int , error ) { if fpu . update_time == nil { v := floorplan . UpdateDefaultUpdateTime ( ) fpu . update_time = & v } if len ( fpu . location ) > 1 { return 0 , errors . New ( " \" \" " ) } if len ( fpu . reference_point ) > 1 { return 0 , errors . New ( " \" \" " ) } if len ( fpu . scale ) > 1 { return 0 , errors . New ( " \" \" " ) } if len ( fpu . image ) > 1 { return 0 , errors . New ( " \" \" " ) } return fpu . sqlSave ( ctx ) }
Save executes the query and returns the number of rows/vertices matched by this operation.
Save executes the query and returns the number of rows / vertices matched by this operation .