PHP code example of alextartan / doctrine-paginator-ramsey-binary-uuid
1. Go to this page and download the library: Download alextartan/doctrine-paginator-ramsey-binary-uuid library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
alextartan / doctrine-paginator-ramsey-binary-uuid example snippets
$repo = $this->em->getRepository(SomeEntity::class);
$query = $repo->createQueryBuilder('se')
->setMaxResults(2)
// more stuff here
->getQuery();
$p = new BinaryUuidSafePaginator($query);