pagerwave / doctrine-orm-extension
PagerWave extension for Doctrine ORM support
v1.5.0
2024-11-22 18:37 UTC
Requires
- php: 7.2.*|7.3.*|7.4.*|8.0.*|8.1.*|8.2.*|8.3.*|8.4.*
- doctrine/orm: ^2.5|^3.0
- postmill/pagerwave: ^2.0
Requires (Dev)
- ext-pdo_sqlite: *
- doctrine/annotations: ^2.0
- doctrine/cache: ^1.12
- phpunit/phpunit: ^8.5
- symfony/cache: ^5.4|^6.0|^7.0
README
This package lets you paginate Doctrine ORM query builders using PagerWave.
Installation
$ composer require pagerwave/doctrine-orm-extension
Usage
use PagerWave\Extension\DoctrineOrm\QueryBuilderAdapter;
$queryBuilder = $entityManager->createQueryBuilder()
->select('p')
->from(\App\Entity\Post::class, 'p');
$adapter = new QueryBuilderAdapter($queryBuilder);
Read the PagerWave documentation to learn more.
Licence
This project is released under the Zlib licence.