func (wo *WorkOrder) Unwrap() *WorkOrder {
	tx, ok := wo.config.driver.(*txDriver)
	if !ok {
		panic("ent: WorkOrder is not a transactional entity")
	}
	wo.config.driver = tx.drv
	return wo
}
// 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 (wo *WorkOrder) Unwrap() *WorkOrder {
	tx, ok := wo.config.driver.(*txDriver)
	if !ok {
		panic("ent: WorkOrder is not a transactional entity")
	}
	wo.config.driver = tx.drv
	return wo
}
func ( wo * WorkOrder ) Unwrap ( ) * WorkOrder { tx , ok := wo . config . driver . ( * txDriver ) if ! ok { panic ( " " ) } wo . config . driver = tx . drv return wo }
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 .