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