is_managed is now depricated the only thing you could do is see if the transaction is autocommited