{"action":"created","issue":{"url":"https://api.github.com/repos/jasonkneen/RESTe/issues/15","repository_url":"https://api.github.com/repos/jasonkneen/RESTe","labels_url":"https://api.github.com/repos/jasonkneen/RESTe/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/jasonkneen/RESTe/issues/15/comments","events_url":"https://api.github.com/repos/jasonkneen/RESTe/issues/15/events","html_url":"https://github.com/jasonkneen/RESTe/issues/15","id":111602289,"number":15,"title":"Model & Alloy","user":{"login":"pakoArtal","id":7702756,"avatar_url":"https://avatars1.githubusercontent.com/u/7702756?v=4","gravatar_id":"","url":"https://api.github.com/users/pakoArtal","html_url":"https://github.com/pakoArtal","followers_url":"https://api.github.com/users/pakoArtal/followers","following_url":"https://api.github.com/users/pakoArtal/following{/other_user}","gists_url":"https://api.github.com/users/pakoArtal/gists{/gist_id}","starred_url":"https://api.github.com/users/pakoArtal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pakoArtal/subscriptions","organizations_url":"https://api.github.com/users/pakoArtal/orgs","repos_url":"https://api.github.com/users/pakoArtal/repos","events_url":"https://api.github.com/users/pakoArtal/events{/privacy}","received_events_url":"https://api.github.com/users/pakoArtal/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2015-10-15T11:58:54Z","updated_at":"2018-04-30T23:11:40Z","closed_at":"2015-10-19T12:08:50Z","author_association":"NONE","body":"Hi Jason,\n\nThank you for your code. Is really useful!\n\nFollowing your location example I'm trying to show a model with Alloy:\n\nlocationDetail.js\n\n```\nvar args = arguments[0] || {};\n\nAlloy.Models.location.fetch({\n   link: args.modelId\n});\n```\n\nlocationDetail.xml\n\n```\n<Alloy>\n<Window id=\"locationDetailWindow\"  model=\"location\">\n<Label class=\"title\" text=\"{name}\"/>\n<Label class=\"link\" text=\"{address}\"/>\n    </Window>\n</Alloy>\n```\n\nBut I'm getting this error:\n\n[ERROR] :  TiExceptionHandler: (main) [358673,425480] ----- Titanium Javascript Runtime Error -----\n[ERROR] :  TiExceptionHandler: (main) [0,425480] - In alloy/controllers/locationDetail.js:153,25\n[ERROR] :  TiExceptionHandler: (main) [0,425480] - Message: Uncaught TypeError: Cannot call method 'on' of undefined\n[ERROR] :  TiExceptionHandler: (main) [0,425480] - Source:     Alloy.Models.location.on(\"fetch change destroy\", __alloyId14);\n[ERROR] :  V8Exception: Exception occurred at alloy/controllers/locationDetail.js:153: Uncaught TypeError: Cannot call method 'on' of undefined\n\nline 153 is:\nAlloy.Models.location.on(\"fetch change destroy\", __alloyId14);\n\nCan you help me,please?\n"},"comment":{"url":"https://api.github.com/repos/jasonkneen/RESTe/issues/comments/385555634","html_url":"https://github.com/jasonkneen/RESTe/issues/15#issuecomment-385555634","issue_url":"https://api.github.com/repos/jasonkneen/RESTe/issues/15","id":385555634,"user":{"login":"frodfigu","id":701116,"avatar_url":"https://avatars1.githubusercontent.com/u/701116?v=4","gravatar_id":"","url":"https://api.github.com/users/frodfigu","html_url":"https://github.com/frodfigu","followers_url":"https://api.github.com/users/frodfigu/followers","following_url":"https://api.github.com/users/frodfigu/following{/other_user}","gists_url":"https://api.github.com/users/frodfigu/gists{/gist_id}","starred_url":"https://api.github.com/users/frodfigu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frodfigu/subscriptions","organizations_url":"https://api.github.com/users/frodfigu/orgs","repos_url":"https://api.github.com/users/frodfigu/repos","events_url":"https://api.github.com/users/frodfigu/events{/privacy}","received_events_url":"https://api.github.com/users/frodfigu/received_events","type":"User","site_admin":false},"created_at":"2018-04-30T23:11:40Z","updated_at":"2018-04-30T23:11:40Z","author_association":"NONE","body":"Nice work. But I have a related question.\r\n\r\nI have some like this config\r\n\r\n`{\r\n        name: \"publicacion\",\r\n        id: \"objectId\",\r\n        read: \"getPublicacionDetalle\",\r\n        content:\"result\",\r\n        collections: [{\r\n            name: \"publicaciones\",\r\n            content: \"result\",\r\n            read: \"getPublicacionesCentroClasesByUser\"\r\n        }]\r\n    }`\r\n\r\nSo.. How Can I fetch only a single model? I want to get a model that this isn´t in the collection. When the user get into a push notification for example. How can I do this without get the entire collection?\r\n\r\nThank you very much."}}
{"actor":{"display_login":"frodfigu"}}