/paginator-bundle

Primary LanguagePHPGNU Lesser General Public License v3.0LGPL-3.0

mazarini/paginator-bundle

Base to build Entity

Installation

foo@bar:~$ composer require mazarini/paginator-bundle

Utilisation

Extends Mazarini\PaginatorBundle\Repository\EntityRepository allow method fillPage() to populate a paginator.

Paginator just need to know :

  • line per page (setPerPage()),
  • current page (setCurrentPage()), if null given then unlimited lines in one page,
  • criterias to select only some lines (cf findBy())
  • orderBy to order lines (cf findBy())