{"action":"closed","issue":{"url":"https://api.github.com/repos/objectbox/objectbox-java/issues/191","repository_url":"https://api.github.com/repos/objectbox/objectbox-java","labels_url":"https://api.github.com/repos/objectbox/objectbox-java/issues/191/labels{/name}","comments_url":"https://api.github.com/repos/objectbox/objectbox-java/issues/191/comments","events_url":"https://api.github.com/repos/objectbox/objectbox-java/issues/191/events","html_url":"https://github.com/objectbox/objectbox-java/issues/191","id":259759765,"number":191,"title":"ToMany-Relation gets reset if using kotlin classes with additional lists initialized with default value","user":{"login":"SanityResort","id":5298260,"avatar_url":"https://avatars2.githubusercontent.com/u/5298260?v=4","gravatar_id":"","url":"https://api.github.com/users/SanityResort","html_url":"https://github.com/SanityResort","followers_url":"https://api.github.com/users/SanityResort/followers","following_url":"https://api.github.com/users/SanityResort/following{/other_user}","gists_url":"https://api.github.com/users/SanityResort/gists{/gist_id}","starred_url":"https://api.github.com/users/SanityResort/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SanityResort/subscriptions","organizations_url":"https://api.github.com/users/SanityResort/orgs","repos_url":"https://api.github.com/users/SanityResort/repos","events_url":"https://api.github.com/users/SanityResort/events{/privacy}","received_events_url":"https://api.github.com/users/SanityResort/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"greenrobot-team","id":13865709,"avatar_url":"https://avatars3.githubusercontent.com/u/13865709?v=4","gravatar_id":"","url":"https://api.github.com/users/greenrobot-team","html_url":"https://github.com/greenrobot-team","followers_url":"https://api.github.com/users/greenrobot-team/followers","following_url":"https://api.github.com/users/greenrobot-team/following{/other_user}","gists_url":"https://api.github.com/users/greenrobot-team/gists{/gist_id}","starred_url":"https://api.github.com/users/greenrobot-team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greenrobot-team/subscriptions","organizations_url":"https://api.github.com/users/greenrobot-team/orgs","repos_url":"https://api.github.com/users/greenrobot-team/repos","events_url":"https://api.github.com/users/greenrobot-team/events{/privacy}","received_events_url":"https://api.github.com/users/greenrobot-team/received_events","type":"User","site_admin":false},"assignees":[{"login":"greenrobot-team","id":13865709,"avatar_url":"https://avatars3.githubusercontent.com/u/13865709?v=4","gravatar_id":"","url":"https://api.github.com/users/greenrobot-team","html_url":"https://github.com/greenrobot-team","followers_url":"https://api.github.com/users/greenrobot-team/followers","following_url":"https://api.github.com/users/greenrobot-team/following{/other_user}","gists_url":"https://api.github.com/users/greenrobot-team/gists{/gist_id}","starred_url":"https://api.github.com/users/greenrobot-team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greenrobot-team/subscriptions","organizations_url":"https://api.github.com/users/greenrobot-team/orgs","repos_url":"https://api.github.com/users/greenrobot-team/repos","events_url":"https://api.github.com/users/greenrobot-team/events{/privacy}","received_events_url":"https://api.github.com/users/greenrobot-team/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2017-09-22T09:42:48Z","updated_at":"2018-04-17T11:35:51Z","closed_at":"2018-04-17T11:35:51Z","author_association":"NONE","body":"## Issue Basics\r\n- ObjectBox version (are using the latest version?): 1.0.1\r\n- Reproducibility: always\r\n\r\n## Reproducing the bug\r\n### Description\r\nIf an entity has a ToMany relation initialized by the default constructor and also has another list field that is initialized with a default value the ToMany relation is reset after the constructor finishes.\r\n\r\n\r\n### Code\r\nClone https://github.com/SanityResort/objectbox-reproduce and run the Application class, it will fail at the last block when checking the student relation in teacher1.\r\n\r\n### Logs & stackstraces\r\n\r\nn/a\r\n\r\n## Entities\r\nsee github\r\n\r\n## Misc\r\nWorkarounds are shown in the github repo\r\n"}}
{"actor":{"display_login":"greenrobot-team"}}