Download the PHP package ssv445/aggregation-builder-pagination-bundle without Composer
On this page you can find all versions of the php package ssv445/aggregation-builder-pagination-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ssv445/aggregation-builder-pagination-bundle
More information about ssv445/aggregation-builder-pagination-bundle
Files in ssv445/aggregation-builder-pagination-bundle
Package aggregation-builder-pagination-bundle
Short Description Paginate Doctrine MongoDB ODM AggregationBuilder with KnpPaginatorBundle
License MIT
Informations about the package aggregation-builder-pagination-bundle
LudoAggregationBuilderPaginationBundle
Extension bundle for Symfony's KnpPaginatorBundle that allows to paginate
DoctrineMongoDBBundle Doctrine\ODM\MongoDB\Aggregation\Builder.
Requirements
Bundle uses MongoDB $facet operator which is available since MongoDB 3.4.
Installation with Symfony Flex
Open a command console, enter your project directory and execute:
Installation without Symfony Flex
Step 1: Download the Bundle
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
Step 2: Enable the Bundle
Then, enable the bundle by adding it to the list of registered bundles
in the config/bundles.php file of your project:
Usage
Doctrine\ODM\MongoDB\Aggregation\Builder needs to be passed into paginate() method. Be aware that
most of the Builder methods are returning Doctrine\ODM\MongoDB\Aggregation\Stage. So you need to do eg.:
As ->equals('value') would not return AggregationBuilder, the code would throw an Exception if you return
the result of that method directly. Now to paginate the example repository method, you can just do:
All versions of aggregation-builder-pagination-bundle with dependencies
knplabs/knp-paginator-bundle Version ^5.9
doctrine/mongodb-odm-bundle Version ^4.5
ext-mongodb Version *