[Book] Renamed getEntityManager()

The function getEntityManager() is deprecated and was replaced by getManager().