Remove deprecated call getEntityManager to getManager

Use getManager() instead of getEntityManager() that is deprecated since symfony 2.1