I'm trying to show a count of related entities for an entity List view, but there's too many so it runs out of memory (it does a simple count($this->relatedEntities)) in the Entity.
Any idea how/where I can override the ListController of QueryBuilder to add an aggeregated COUNT() column?
I tried extending the AdminController and hooking into the findAll() function (to manually add a count to each object), but that doesn't give me a list of entities but a Pagerfanta object.