Doctrine service, getEntityManager() is deprecated. using getManager() method.