Replace fetchObject with foreach
Replace fetchObject with foreach

The ResultWrapper is iterable

Change-Id: I0e23f9d19ac10767427ed2db22eea89fba0fdffc

wikimedia/mediawiki-extensions-Disambiguator,wikimedia/mediawiki-extensions-Disambiguator