fix: use doctrine iterators for getting entities
fix: use doctrine iterators for getting entities

This solves a segmentation fault when getting a lot of entities from the
repository.

whatwedo/SearchBundle