Update DoctrineBundle API call from getEntityManager() to getManager()

According to https://github.com/doctrine/DoctrineBundle/blob/master/Registry.php#L71, we shall no longer call `getEntityManager()` but instead use `getManager()`.