Replaced EntityManager to EntityManagerInterface.