{"action":"created","issue":{"url":"https://api.github.com/repos/api-platform/core/issues/2349","repository_url":"https://api.github.com/repos/api-platform/core","labels_url":"https://api.github.com/repos/api-platform/core/issues/2349/labels{/name}","comments_url":"https://api.github.com/repos/api-platform/core/issues/2349/comments","events_url":"https://api.github.com/repos/api-platform/core/issues/2349/events","html_url":"https://github.com/api-platform/core/issues/2349","id":384833395,"node_id":"MDU6SXNzdWUzODQ4MzMzOTU=","number":2349,"title":"BC Break: IdentifierConverter adds nested 'id' property","user":{"login":"Matth--","id":5814301,"node_id":"MDQ6VXNlcjU4MTQzMDE=","avatar_url":"https://avatars1.githubusercontent.com/u/5814301?v=4","gravatar_id":"","url":"https://api.github.com/users/Matth--","html_url":"https://github.com/Matth--","followers_url":"https://api.github.com/users/Matth--/followers","following_url":"https://api.github.com/users/Matth--/following{/other_user}","gists_url":"https://api.github.com/users/Matth--/gists{/gist_id}","starred_url":"https://api.github.com/users/Matth--/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Matth--/subscriptions","organizations_url":"https://api.github.com/users/Matth--/orgs","repos_url":"https://api.github.com/users/Matth--/repos","events_url":"https://api.github.com/users/Matth--/events{/privacy}","received_events_url":"https://api.github.com/users/Matth--/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-11-27T14:54:59Z","updated_at":"2018-12-07T10:56:54Z","closed_at":"2018-12-07T10:56:54Z","author_association":"NONE","body":"I have a SubresourceDataprovider that uses the identifier to perform a query.\r\nThe result in v2.2.9 on the `array $identifiers` was\r\n\r\n```php\r\n[\r\n    ['id'] = 25\r\n]\r\n```\r\n\r\nWhen upgrading to 2.3.* the `ApiPlatform\\Core\\Identifier\\IdentifierConverter` class (called in `ApiPlatform\\Core\\DataProvider\\OperationDataProviderTrait` converts every id to an extra nested array so the `array $identifiers` argument on the getSubresource method in my SubresourceDataprovider has been changed to:\r\n\r\n```php\r\n[\r\n    ['id'] = [\r\n        ['id'] = 25\r\n    ]\r\n]\r\n```"},"comment":{"url":"https://api.github.com/repos/api-platform/core/issues/comments/445197349","html_url":"https://github.com/api-platform/core/issues/2349#issuecomment-445197349","issue_url":"https://api.github.com/repos/api-platform/core/issues/2349","id":445197349,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NTE5NzM0OQ==","user":{"login":"soyuka","id":1321971,"node_id":"MDQ6VXNlcjEzMjE5NzE=","avatar_url":"https://avatars3.githubusercontent.com/u/1321971?v=4","gravatar_id":"","url":"https://api.github.com/users/soyuka","html_url":"https://github.com/soyuka","followers_url":"https://api.github.com/users/soyuka/followers","following_url":"https://api.github.com/users/soyuka/following{/other_user}","gists_url":"https://api.github.com/users/soyuka/gists{/gist_id}","starred_url":"https://api.github.com/users/soyuka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soyuka/subscriptions","organizations_url":"https://api.github.com/users/soyuka/orgs","repos_url":"https://api.github.com/users/soyuka/repos","events_url":"https://api.github.com/users/soyuka/events{/privacy}","received_events_url":"https://api.github.com/users/soyuka/received_events","type":"User","site_admin":false},"created_at":"2018-12-07T10:56:54Z","updated_at":"2018-12-07T10:56:54Z","author_association":"MEMBER","body":"This comes from the subresource implementation and the work on normalizing identifiers between data providers. By the way there can me more then one identifier for a subresource. Glad you fixed it and sorry about that!"}}
{"actor":{"display_login":"soyuka"}}