Removed deprecated use of getEntityManager

Using getManager instead, since symfony2.1 deprecates getEntityManager