{"action":"created","issue":{"url":"https://api.github.com/repos/sulu-io/sulu/issues/1636","labels_url":"https://api.github.com/repos/sulu-io/sulu/issues/1636/labels{/name}","comments_url":"https://api.github.com/repos/sulu-io/sulu/issues/1636/comments","events_url":"https://api.github.com/repos/sulu-io/sulu/issues/1636/events","html_url":"https://github.com/sulu-io/sulu/issues/1636","id":108906094,"number":1636,"title":"Search tries to index Object instead of ID from CLI with custom document type.","user":{"login":"dantleech","id":530801,"avatar_url":"https://avatars.githubusercontent.com/u/530801?v=3","gravatar_id":"","url":"https://api.github.com/users/dantleech","html_url":"https://github.com/dantleech","followers_url":"https://api.github.com/users/dantleech/followers","following_url":"https://api.github.com/users/dantleech/following{/other_user}","gists_url":"https://api.github.com/users/dantleech/gists{/gist_id}","starred_url":"https://api.github.com/users/dantleech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dantleech/subscriptions","organizations_url":"https://api.github.com/users/dantleech/orgs","repos_url":"https://api.github.com/users/dantleech/repos","events_url":"https://api.github.com/users/dantleech/events{/privacy}","received_events_url":"https://api.github.com/users/dantleech/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sulu-io/sulu/labels/Bug","name":"Bug","color":"eb6420"},{"url":"https://api.github.com/repos/sulu-io/sulu/labels/Hotfix","name":"Hotfix","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-09-29T16:23:58Z","updated_at":"2015-10-09T08:29:41Z","closed_at":null,"body":"If I understand correctly:\r\n\r\n- @stemod has created a new structure type, based on the Snippet document type, which has a Category field.\r\n- When saving in the admin, the category is correctly updated.\r\n- When reindexing the search from the CLI, it throws an error because the relation is an object and not an ID."},"comment":{"url":"https://api.github.com/repos/sulu-io/sulu/issues/comments/146796111","html_url":"https://github.com/sulu-io/sulu/issues/1636#issuecomment-146796111","issue_url":"https://api.github.com/repos/sulu-io/sulu/issues/1636","id":146796111,"user":{"login":"wachterjohannes","id":1464615,"avatar_url":"https://avatars.githubusercontent.com/u/1464615?v=3","gravatar_id":"","url":"https://api.github.com/users/wachterjohannes","html_url":"https://github.com/wachterjohannes","followers_url":"https://api.github.com/users/wachterjohannes/followers","following_url":"https://api.github.com/users/wachterjohannes/following{/other_user}","gists_url":"https://api.github.com/users/wachterjohannes/gists{/gist_id}","starred_url":"https://api.github.com/users/wachterjohannes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wachterjohannes/subscriptions","organizations_url":"https://api.github.com/users/wachterjohannes/orgs","repos_url":"https://api.github.com/users/wachterjohannes/repos","events_url":"https://api.github.com/users/wachterjohannes/events{/privacy}","received_events_url":"https://api.github.com/users/wachterjohannes/received_events","type":"User","site_admin":false},"created_at":"2015-10-09T08:29:41Z","updated_at":"2015-10-09T08:29:41Z","body":"@danrot @chirimoya we have to talk about who finish this PR."}}