Fix fatal error.
Simplify Manager::getEntityTypes().