entity manager issue