The DoctrineOrmResultSetFactory class, responsible for creating a result set and its iterator, was incorrectly setting the query's first result (offset), which introduced a bug visible on the last page of results.
For example, if last page contains 22 rows, but each page displays 25 max, the factory would (incorrectly) iterate one more time, adding another 25 rows, starting from offset of 22 records.
References issue described in #77
The
DoctrineOrmResultSetFactory
class, responsible for creating a result set and its iterator, was incorrectly setting the query's first result (offset), which introduced a bug visible on the last page of results.For example, if last page contains 22 rows, but each page displays 25 max, the factory would (incorrectly) iterate one more time, adding another 25 rows, starting from offset of 22 records.