Remove getEntityManager() deprecated since symfony 2.1

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