{"action":"opened","issue":{"url":"https://api.github.com/repos/findologic/libflexport/issues/1","repository_url":"https://api.github.com/repos/findologic/libflexport","labels_url":"https://api.github.com/repos/findologic/libflexport/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/findologic/libflexport/issues/1/comments","events_url":"https://api.github.com/repos/findologic/libflexport/issues/1/events","html_url":"https://github.com/findologic/libflexport/issues/1","id":233125779,"number":1,"title":"Bonus, DateAdded, SaleFrequency and Sort are needed for the XML.","user":{"login":"TheKeymaster","id":20555112,"avatar_url":"https://avatars2.githubusercontent.com/u/20555112?v=3","gravatar_id":"","url":"https://api.github.com/users/TheKeymaster","html_url":"https://github.com/TheKeymaster","followers_url":"https://api.github.com/users/TheKeymaster/followers","following_url":"https://api.github.com/users/TheKeymaster/following{/other_user}","gists_url":"https://api.github.com/users/TheKeymaster/gists{/gist_id}","starred_url":"https://api.github.com/users/TheKeymaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheKeymaster/subscriptions","organizations_url":"https://api.github.com/users/TheKeymaster/orgs","repos_url":"https://api.github.com/users/TheKeymaster/repos","events_url":"https://api.github.com/users/TheKeymaster/events{/privacy}","received_events_url":"https://api.github.com/users/TheKeymaster/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-06-02T09:25:21Z","updated_at":"2017-06-02T09:25:21Z","closed_at":null,"body":"If I want to generate the XML with libflexport I need to set at least a value for following Elements:\r\n\r\n```\r\n$item->setBonus(new Bonus(\"0\"));\r\n$item->setSalesFrequency(new SalesFrequency(\"0\"));\r\n$item->setDateAdded(new DateAdded(\"0\"));\r\n$item->setSort(new Sort(\"0\"));\r\n```\r\n\r\nIf I don't, I will get a PHP Fatal Error:\r\n\r\n```\r\nCall to a member function getDomSubtree() on null in pathTo/findologic/export/src/FINDOLOGIC/Export/XML/XMLItem.php on line 35\r\n```\r\n\r\nThe lines are 35, 36, 37, and 38.\r\n\r\nThe FINDOLOGIC XML schema mentions that those values are optional, but If I don't set them in the library, I will get an error.\r\n\r\nIf you need more information or you can not reproduce this case, please contact me.\r\n\r\nRegards,\r\nTheKeymaster"}}
{"actor":{"display_login":"TheKeymaster"}}