Open tb07 opened 5 years ago
Hi @tangbingbing, thanks for getting involved.
The DoctrineORM adapter, which I think is the one you're using, actually uses setFirstResult itself behind the scenes, so I guess that's why your setting of it is being ignored.
If we wanted to support starting from an arbitrary offset, we'd need to modify the adapter method and get people to use a new method on Pagerfanta to set start point rather than doing it directly in the querybuilder, I think.
Anyway, regardless of exactly how we do it, this is quite a major change, I'm afraid. Could you explain more about your use case here? That'll help us work out whether it's worth suggesting you make a Pull Request for this change or whether it's not worth incorporating.
I print the Paginator![image](https://user-images.githubusercontent.com/16116559/49269414-c95b9580-f49f-11e8-89d3-ba9281ab26d4.png)
Query Builder has FirstResult in it
But FirstResult didn't work in the end
I notice that "Pagerfanta/Pagerfanta, "line 316 is not going to fetch the initial FirstResult