fix(metadata): extract XML paginationViaCursor as a list of fields by Maxcastel · Pull Request #8729 · api-platform/core · GitHub
Skip to content

fix(metadata): extract XML paginationViaCursor as a list of fields - #8729

Open
Maxcastel wants to merge 1 commit into
api-platform:5.0from
Maxcastel:fix/xml-pagination-via-cursor
Open

Maxcastel wants to merge 1 commit into
api-platform:5.0from
Maxcastel:fix/xml-pagination-via-cursor

Conversation

@Maxcastel

@Maxcastel Maxcastel commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor
Q A
Branch? 5.0
License MIT

With XML, <paginationField field="id" direction="DESC"/> was extracted as ['id' => 'DESC'], but Hydra (and the attribute) use [['field' => 'id', 'direction' => 'DESC']], so cursor pagination ended with Cannot access offset of type string on string.

The compatibility test built its XML from the same wrong format, that's why it was green, I updated it too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant