change depricated getEntityManager to getManager
cs fixes