Switched injection of entity manager from constructor to field