{"action":"created","issue":{"url":"https://api.github.com/repos/jayathu/TwitterAppClient/issues/2","repository_url":"https://api.github.com/repos/jayathu/TwitterAppClient","labels_url":"https://api.github.com/repos/jayathu/TwitterAppClient/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/jayathu/TwitterAppClient/issues/2/comments","events_url":"https://api.github.com/repos/jayathu/TwitterAppClient/issues/2/events","html_url":"https://github.com/jayathu/TwitterAppClient/issues/2","id":135988309,"number":2,"title":"Can't get the media to load from db","user":{"login":"jayathu","id":1219527,"avatar_url":"https://avatars.githubusercontent.com/u/1219527?v=3","gravatar_id":"","url":"https://api.github.com/users/jayathu","html_url":"https://github.com/jayathu","followers_url":"https://api.github.com/users/jayathu/followers","following_url":"https://api.github.com/users/jayathu/following{/other_user}","gists_url":"https://api.github.com/users/jayathu/gists{/gist_id}","starred_url":"https://api.github.com/users/jayathu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayathu/subscriptions","organizations_url":"https://api.github.com/users/jayathu/orgs","repos_url":"https://api.github.com/users/jayathu/repos","events_url":"https://api.github.com/users/jayathu/events{/privacy}","received_events_url":"https://api.github.com/users/jayathu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-24T08:05:54Z","updated_at":"2016-02-25T02:19:32Z","closed_at":null,"body":"@codepathreview @codepath\r\n\r\nThis has been bugging me for the past couple of days. I think I am following all the 'rules' for saving the objects properly. I can get the basic tweet texts, profile pics and user information from the db but I can't get the media to load. At this point, I have almost given up and I am going in circles trying to spot the issue. Would appreciate extra pair of eyes taking a look at it! \r\n\r\nTo give you pointers to the code that's giving me issues: here are a couple of places you may want to start looking:\r\n\r\nTimelineActivity::StoreTweetsToLocalDatabase at Line #323.\r\nExtendedEntities::createIfExists at Line #36\r\n\r\nThanks for the help!"},"comment":{"url":"https://api.github.com/repos/jayathu/TwitterAppClient/issues/comments/188568228","html_url":"https://github.com/jayathu/TwitterAppClient/issues/2#issuecomment-188568228","issue_url":"https://api.github.com/repos/jayathu/TwitterAppClient/issues/2","id":188568228,"user":{"login":"rogerhu","id":326857,"avatar_url":"https://avatars.githubusercontent.com/u/326857?v=3","gravatar_id":"","url":"https://api.github.com/users/rogerhu","html_url":"https://github.com/rogerhu","followers_url":"https://api.github.com/users/rogerhu/followers","following_url":"https://api.github.com/users/rogerhu/following{/other_user}","gists_url":"https://api.github.com/users/rogerhu/gists{/gist_id}","starred_url":"https://api.github.com/users/rogerhu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rogerhu/subscriptions","organizations_url":"https://api.github.com/users/rogerhu/orgs","repos_url":"https://api.github.com/users/rogerhu/repos","events_url":"https://api.github.com/users/rogerhu/events{/privacy}","received_events_url":"https://api.github.com/users/rogerhu/received_events","type":"User","site_admin":false},"created_at":"2016-02-25T02:19:32Z","updated_at":"2016-02-25T02:19:32Z","body":"Jay,\r\n\r\nSaving empty constructors helps with your code running correctly, but ActiveAndroid doesn't out of the box handle saving/retrieving nested data structures for you.  Usually you will have to build this structure up yourself (i.e. get the tweet, get the extended entity id, and then fetch the media.  Your Media object for instance should probably have an integer column of the extended entity ID so you can relate it back. \r\n\r\nBut regardless, you have to fetch this data and build it back up yourself.  Does that make sense?"}}