rekalogika / collections-orm
Lazy-loading collection class using Doctrine ORM QueryBuilder as the data source
Fund package maintenance!
priyadi
Requires
- php: ^8.2
- doctrine/collections: ^2.2.2 || ^2.3
- doctrine/orm: ^2.14 || ^3.0
- rekalogika/collections-common: ^0.13
- rekalogika/collections-contracts: ^0.13
- rekalogika/collections-domain: ^0.13
- rekalogika/rekapager-contracts: ^0.19
- rekalogika/rekapager-doctrine-orm-adapter: ^0.19
- rekalogika/rekapager-keyset-pagination: ^0.19
README
Lazy-loading collection class using Doctrine ORM QueryBuilder
as the data
source. Unlike doing the query in the traditional way, this class allows lazy
loading. You can safely pass the object around, and it will only execute the
query when you start getting items from it.
The class also implements the PageableInterface
from the
rekalogika/rekapager
library. This allows
you to iterate over the collection without loading all the items into memory.
And also useful for creating paginated user interfaces and API outputs.
Documentation
License
MIT
Contributing
This library consists of multiple repositories split from a monorepo. Be sure to submit issues and pull requests to the rekalogika/collections monorepo.