func (stc *SurveyTemplateCategory) Unwrap() *SurveyTemplateCategory {
	tx, ok := stc.config.driver.(*txDriver)
	if !ok {
		panic("ent: SurveyTemplateCategory is not a transactional entity")
	}
	stc.config.driver = tx.drv
	return stc
}
// Unwrap unwraps the entity that was returned from a transaction after it was closed,
// so that all next queries will be executed through the driver which created the transaction.
Unwrap unwraps the entity that was returned from a transaction after it was closed,
so that all next queries will be executed through the driver which created the transaction.
// Unwrap unwraps the entity that was returned from a transaction after it was closed // so that all next queries will be executed through the driver which created the transaction .
func (stc *SurveyTemplateCategory) Unwrap() *SurveyTemplateCategory {
	tx, ok := stc.config.driver.(*txDriver)
	if !ok {
		panic("ent: SurveyTemplateCategory is not a transactional entity")
	}
	stc.config.driver = tx.drv
	return stc
}
func ( stc * SurveyTemplateCategory ) Unwrap ( ) * SurveyTemplateCategory { tx , ok := stc . config . driver . ( * txDriver ) if ! ok { panic ( " " ) } stc . config . driver = tx . drv return stc }
Unwrap unwraps the entity that was returned from a transaction after it was closed,
so that all next queries will be executed through the driver which created the transaction.
Unwrap unwraps the entity that was returned from a transaction after it was closed so that all next queries will be executed through the driver which created the transaction .