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