change entity manager visibility to protecte