{"action":"created","issue":{"url":"https://api.github.com/repos/tommikaikkonen/redux-orm-primer/issues/1","repository_url":"https://api.github.com/repos/tommikaikkonen/redux-orm-primer","labels_url":"https://api.github.com/repos/tommikaikkonen/redux-orm-primer/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/tommikaikkonen/redux-orm-primer/issues/1/comments","events_url":"https://api.github.com/repos/tommikaikkonen/redux-orm-primer/issues/1/events","html_url":"https://github.com/tommikaikkonen/redux-orm-primer/issues/1","id":161934468,"number":1,"title":"Models test example no longer working with redux-orm 0.8","user":{"login":"rodneyrd","id":1534619,"avatar_url":"https://avatars.githubusercontent.com/u/1534619?v=3","gravatar_id":"","url":"https://api.github.com/users/rodneyrd","html_url":"https://github.com/rodneyrd","followers_url":"https://api.github.com/users/rodneyrd/followers","following_url":"https://api.github.com/users/rodneyrd/following{/other_user}","gists_url":"https://api.github.com/users/rodneyrd/gists{/gist_id}","starred_url":"https://api.github.com/users/rodneyrd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rodneyrd/subscriptions","organizations_url":"https://api.github.com/users/rodneyrd/orgs","repos_url":"https://api.github.com/users/rodneyrd/repos","events_url":"https://api.github.com/users/rodneyrd/events{/privacy}","received_events_url":"https://api.github.com/users/rodneyrd/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-06-23T14:18:43Z","updated_at":"2016-06-27T05:47:17Z","closed_at":"2016-06-26T21:04:53Z","body":"First of all, thank you for your really detailed examples. Really helpful.\r\n\r\nI've faced a problem though when I reached the unit testing part. I started by testing with bootstrapping state with my own data, but factories are pretty cool and fast way to get it done.\r\n\r\nI've setup everything properly, used your ReduxORMAdapter for the factory. \r\n```\r\n//testModels.js\r\nfactory.createMany('User', 2).then(users => {});\r\n```\r\nThe line above reaches the \"build\" method of the adapter which call \"Model.create(props);\"\r\n\r\n```\r\n//utils.js\r\nexport class ReduxORMAdapter {\r\n    build(Model, props) {\r\n        return Model.create(props);\r\n    }\r\n}\r\n```\r\n\r\nBut in redux-orm v0.8 the \"Model.create\" method try to access \"this.session\" (l.476) which is undefined\r\n```\r\n//redux-orm/lib/Model.js\r\n        key: 'markAccessed',\r\n        value: function markAccessed() {\r\n            this.session.markAccessed(this); //this.session is undefined\r\n        }\r\n```\r\nI've tested with redux-orm v0.5.1, everything works correctly.\r\n\r\nDo you have any idea why this.session is not initialized within Model class from modelsTests example?\r\n"},"comment":{"url":"https://api.github.com/repos/tommikaikkonen/redux-orm-primer/issues/comments/228659010","html_url":"https://github.com/tommikaikkonen/redux-orm-primer/issues/1#issuecomment-228659010","issue_url":"https://api.github.com/repos/tommikaikkonen/redux-orm-primer/issues/1","id":228659010,"user":{"login":"rodneyrd","id":1534619,"avatar_url":"https://avatars.githubusercontent.com/u/1534619?v=3","gravatar_id":"","url":"https://api.github.com/users/rodneyrd","html_url":"https://github.com/rodneyrd","followers_url":"https://api.github.com/users/rodneyrd/followers","following_url":"https://api.github.com/users/rodneyrd/following{/other_user}","gists_url":"https://api.github.com/users/rodneyrd/gists{/gist_id}","starred_url":"https://api.github.com/users/rodneyrd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rodneyrd/subscriptions","organizations_url":"https://api.github.com/users/rodneyrd/orgs","repos_url":"https://api.github.com/users/rodneyrd/repos","events_url":"https://api.github.com/users/rodneyrd/events{/privacy}","received_events_url":"https://api.github.com/users/rodneyrd/received_events","type":"User","site_admin":false},"created_at":"2016-06-27T05:47:17Z","updated_at":"2016-06-27T05:47:17Z","body":"Works like a charm! Thanks a lot!"}}
{"actor":{"display_login":"rodneyrd"}}