func (stqu *SurveyTemplateQuestionUpdate) Save(ctx context.Context) (int, error) {
	if stqu.update_time == nil {
		v := surveytemplatequestion.UpdateDefaultUpdateTime()
		stqu.update_time = &v
	}
	if len(stqu.category) > 1 {
		return 0, errors.New("ent: multiple assignments on a unique edge \"category\"")
	}
	return stqu.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 (stqu *SurveyTemplateQuestionUpdate) Save(ctx context.Context) (int, error) {
	if stqu.update_time == nil {
		v := surveytemplatequestion.UpdateDefaultUpdateTime()
		stqu.update_time = &v
	}
	if len(stqu.category) > 1 {
		return 0, errors.New("ent: multiple assignments on a unique edge \"category\"")
	}
	return stqu.sqlSave(ctx)
}
func ( stqu * SurveyTemplateQuestionUpdate ) Save ( ctx context . Context ) ( int , error ) { if stqu . update_time == nil { v := surveytemplatequestion . UpdateDefaultUpdateTime ( ) stqu . update_time = & v } if len ( stqu . category ) > 1 { return 0 , errors . New ( " \" \" " ) } return stqu . 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 .