{"action":"created","issue":{"url":"https://api.github.com/repos/realm/realm-cocoa/issues/3129","repository_url":"https://api.github.com/repos/realm/realm-cocoa","labels_url":"https://api.github.com/repos/realm/realm-cocoa/issues/3129/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-cocoa/issues/3129/comments","events_url":"https://api.github.com/repos/realm/realm-cocoa/issues/3129/events","html_url":"https://github.com/realm/realm-cocoa/issues/3129","id":128387415,"number":3129,"title":"Realm crashes when primary key type is not int or string with confusing error","user":{"login":"gal-orlanczyk","id":6908583,"avatar_url":"https://avatars.githubusercontent.com/u/6908583?v=3","gravatar_id":"","url":"https://api.github.com/users/gal-orlanczyk","html_url":"https://github.com/gal-orlanczyk","followers_url":"https://api.github.com/users/gal-orlanczyk/followers","following_url":"https://api.github.com/users/gal-orlanczyk/following{/other_user}","gists_url":"https://api.github.com/users/gal-orlanczyk/gists{/gist_id}","starred_url":"https://api.github.com/users/gal-orlanczyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gal-orlanczyk/subscriptions","organizations_url":"https://api.github.com/users/gal-orlanczyk/orgs","repos_url":"https://api.github.com/users/gal-orlanczyk/repos","events_url":"https://api.github.com/users/gal-orlanczyk/events{/privacy}","received_events_url":"https://api.github.com/users/gal-orlanczyk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/realm/realm-cocoa/labels/Reproduction%20Required","name":"Reproduction Required","color":"fbca04"},{"url":"https://api.github.com/repos/realm/realm-cocoa/labels/T:Bug-Crash","name":"T:Bug-Crash","color":"e11d21"}],"state":"open","locked":false,"assignee":{"login":"mrackwitz","id":1389011,"avatar_url":"https://avatars.githubusercontent.com/u/1389011?v=3","gravatar_id":"","url":"https://api.github.com/users/mrackwitz","html_url":"https://github.com/mrackwitz","followers_url":"https://api.github.com/users/mrackwitz/followers","following_url":"https://api.github.com/users/mrackwitz/following{/other_user}","gists_url":"https://api.github.com/users/mrackwitz/gists{/gist_id}","starred_url":"https://api.github.com/users/mrackwitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrackwitz/subscriptions","organizations_url":"https://api.github.com/users/mrackwitz/orgs","repos_url":"https://api.github.com/users/mrackwitz/repos","events_url":"https://api.github.com/users/mrackwitz/events{/privacy}","received_events_url":"https://api.github.com/users/mrackwitz/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2016-01-24T10:48:01Z","updated_at":"2016-02-10T07:22:10Z","closed_at":null,"body":"when i used realm in my unit tests, i received a strange error:\r\n\"`Object` classes must not be pre populated with query results from a Realm\"\r\nbut the real problem was my primary key was of wrong type and only needs to be int or string.\r\ni think you should have an appropriate error message for such case."},"comment":{"url":"https://api.github.com/repos/realm/realm-cocoa/issues/comments/182235709","html_url":"https://github.com/realm/realm-cocoa/issues/3129#issuecomment-182235709","issue_url":"https://api.github.com/repos/realm/realm-cocoa/issues/3129","id":182235709,"user":{"login":"TimOliver","id":429119,"avatar_url":"https://avatars.githubusercontent.com/u/429119?v=3","gravatar_id":"","url":"https://api.github.com/users/TimOliver","html_url":"https://github.com/TimOliver","followers_url":"https://api.github.com/users/TimOliver/followers","following_url":"https://api.github.com/users/TimOliver/following{/other_user}","gists_url":"https://api.github.com/users/TimOliver/gists{/gist_id}","starred_url":"https://api.github.com/users/TimOliver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TimOliver/subscriptions","organizations_url":"https://api.github.com/users/TimOliver/orgs","repos_url":"https://api.github.com/users/TimOliver/repos","events_url":"https://api.github.com/users/TimOliver/events{/privacy}","received_events_url":"https://api.github.com/users/TimOliver/received_events","type":"User","site_admin":false},"created_at":"2016-02-10T07:22:10Z","updated_at":"2016-02-10T07:22:10Z","body":"Hi @gal-orlanczyk! Just checking in! Are you still having this issue, or were you able to fix it yourself?\r\n\r\nWe're eager to hear how you went! :)"}}