remove doctrine registry and put entity manager