knp-components
knp-components copied to clipboard
Various component pack, includes paginator
Fixes https://github.com/KnpLabs/knp-components/issues/311
### Feature Request | Q | A |------------ | ------ | New Feature | yes | RFC | yes | BC Break | no #### Summary Currently `Paginator::paginate()` throws a...
Our current implementation is relying on Symfony Request object to retrieve parameters (for sorting and/or filtering). Basically, we simply use `$request->query` for an almost-direct access to query string parameters (being...
The [`PaginationInterface`](https://github.com/KnpLabs/knp-components/blob/master/src/Knp/Component/Pager/Pagination/PaginationInterface.php) has a `setCustomParameters` method, but no `getCustomParameters` method. The `getCustomParameter` allows us to get a param, but only if you have a sepcific key. It is not possible...
Details see #294
When using the `paginate()` method of the `Paginator` class with an object as target, it throws the following deprecation: > array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or...
currently pagination limit default value is harcoded in function declaration https://github.com/KnpLabs/knp-components/blob/master/src/Knp/Component/Pager/Paginator.php#L83 however passing `$limit = null` cause exception: https://github.com/KnpLabs/knp-components/blob/master/src/Knp/Component/Pager/Paginator.php#L87 this is a problem when im trying to set options like...
Hi! In my projects, I always sort my `QueryBuilders` by default to have consistent lists throughout my application: ```php class UserRepository extends EntityRepository { public function findFilter(Filter $filter): QueryBuilder {...