{"action":"created","issue":{"url":"https://api.github.com/repos/schmittjoh/serializer/issues/595","repository_url":"https://api.github.com/repos/schmittjoh/serializer","labels_url":"https://api.github.com/repos/schmittjoh/serializer/issues/595/labels{/name}","comments_url":"https://api.github.com/repos/schmittjoh/serializer/issues/595/comments","events_url":"https://api.github.com/repos/schmittjoh/serializer/issues/595/events","html_url":"https://github.com/schmittjoh/serializer/pull/595","id":157079802,"number":595,"title":"Fix xml-attribute-map for the xml driver","user":{"login":"romantomchak","id":2635104,"avatar_url":"https://avatars.githubusercontent.com/u/2635104?v=3","gravatar_id":"","url":"https://api.github.com/users/romantomchak","html_url":"https://github.com/romantomchak","followers_url":"https://api.github.com/users/romantomchak/followers","following_url":"https://api.github.com/users/romantomchak/following{/other_user}","gists_url":"https://api.github.com/users/romantomchak/gists{/gist_id}","starred_url":"https://api.github.com/users/romantomchak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romantomchak/subscriptions","organizations_url":"https://api.github.com/users/romantomchak/orgs","repos_url":"https://api.github.com/users/romantomchak/repos","events_url":"https://api.github.com/users/romantomchak/events{/privacy}","received_events_url":"https://api.github.com/users/romantomchak/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-05-26T21:09:15Z","updated_at":"2016-07-10T10:29:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/schmittjoh/serializer/pulls/595","html_url":"https://github.com/schmittjoh/serializer/pull/595","diff_url":"https://github.com/schmittjoh/serializer/pull/595.diff","patch_url":"https://github.com/schmittjoh/serializer/pull/595.patch"},"body":"There is a simple test XML reference for class Foo:\r\n```xml\r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<serializer>\r\n    <class name=\"Foo\">\r\n        <property name=\"array\" type=\"array\" xml-attribute-map=\"true\" />\r\n    </class>\r\n</serializer>\r\n```\r\n\r\n```php\r\nclass Foo\r\n{\r\n    private $array = [\r\n        'name' => 'firstname',\r\n        'value' => 'lastname'\r\n    ];\r\n}\r\n```\r\n\r\nWhen I try serialize this class I'm expecting to get the result as shown below but instead getting an error that the property **array** cannot be serialized because it contains not allowed characters.\r\n```xml\r\n<result name=\"firstname\" value=\"lastname\"/>\r\n```\r\n\r\nAfter investigation I found the mismatch between xml file property and property in metadata class.\r\nThis commit fixed this issue.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/schmittjoh/serializer/issues/comments/231581834","html_url":"https://github.com/schmittjoh/serializer/pull/595#issuecomment-231581834","issue_url":"https://api.github.com/repos/schmittjoh/serializer/issues/595","id":231581834,"user":{"login":"goetas","id":776743,"avatar_url":"https://avatars.githubusercontent.com/u/776743?v=3","gravatar_id":"","url":"https://api.github.com/users/goetas","html_url":"https://github.com/goetas","followers_url":"https://api.github.com/users/goetas/followers","following_url":"https://api.github.com/users/goetas/following{/other_user}","gists_url":"https://api.github.com/users/goetas/gists{/gist_id}","starred_url":"https://api.github.com/users/goetas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goetas/subscriptions","organizations_url":"https://api.github.com/users/goetas/orgs","repos_url":"https://api.github.com/users/goetas/repos","events_url":"https://api.github.com/users/goetas/events{/privacy}","received_events_url":"https://api.github.com/users/goetas/received_events","type":"User","site_admin":false},"created_at":"2016-07-10T10:29:57Z","updated_at":"2016-07-10T10:29:57Z","body":":+1: \r\n"}}
{"actor":{"display_login":"goetas"}}