pagerwave/doctrine-orm-extension

PagerWave extension for Doctrine ORM support

v1.5.0 2024-11-22 18:37 UTC

This package is auto-updated.

Last update: 2024-11-22 18:37:55 UTC


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.