Change getEntityManager by getManager in Controller