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