add resetEntityManager method on Doctrine Container class to make recovering from exceptions easier