NonUniqueResultException: Doctrine Paginator with join fetch
When paginating a one-to-many query that uses a join fetch, Doctrine's Paginator throws a NonUniqueResultException because the result set contains duplicate root entities. The Paginator first executes a separate count query to determine the total number of results, then fetches the requested slice. With a join fetch, Doctrine may either load all rows into me