Fixed call to getEntityManager()

The getEntityManager() call on a Doctrine object is no longer valid, is now called getManager().