diff --git a/docs/serializer.md b/docs/serializer.md index f08eb43..f4e29ab 100644 --- a/docs/serializer.md +++ b/docs/serializer.md @@ -60,4 +60,6 @@ Below is an example of how a `Pagerfanta\Pagerfanta` instance is serialized into ### Preserving Array Keys +
This context attribute was introduced in PagerfantaBundle 4.5.
+ Both serialization integrations support configuring the way array keys are preserved using the `pagerfanta_preserve_keys` context attribute. By default, or when the attribute is explicitly set to null, the payload will be serialized exactly as provided by the pagination adapter. However, when the attribute is set to a boolean value, the value will be used as the second argument when calling the native `iterator_to_array()` function.