{"action":"created","issue":{"url":"https://api.github.com/repos/balderdashy/sails-redis/issues/24","labels_url":"https://api.github.com/repos/balderdashy/sails-redis/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/balderdashy/sails-redis/issues/24/comments","events_url":"https://api.github.com/repos/balderdashy/sails-redis/issues/24/events","html_url":"https://github.com/balderdashy/sails-redis/issues/24","id":34352388,"number":24,"title":"'save' function fails","user":{"login":"hongkongkiwi","id":1750976,"avatar_url":"https://avatars.githubusercontent.com/u/1750976?v=3","gravatar_id":"","url":"https://api.github.com/users/hongkongkiwi","html_url":"https://github.com/hongkongkiwi","followers_url":"https://api.github.com/users/hongkongkiwi/followers","following_url":"https://api.github.com/users/hongkongkiwi/following{/other_user}","gists_url":"https://api.github.com/users/hongkongkiwi/gists{/gist_id}","starred_url":"https://api.github.com/users/hongkongkiwi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hongkongkiwi/subscriptions","organizations_url":"https://api.github.com/users/hongkongkiwi/orgs","repos_url":"https://api.github.com/users/hongkongkiwi/repos","events_url":"https://api.github.com/users/hongkongkiwi/events{/privacy}","received_events_url":"https://api.github.com/users/hongkongkiwi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/balderdashy/sails-redis/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2014-05-27T08:49:58Z","updated_at":"2015-08-20T00:37:05Z","closed_at":null,"body":"When using waterline 'save' function on an instance it fails with error:\r\n[Error: Primary key cannot be updated]\r\n\r\nThis happens even when I'm not updating a single field.\r\n\r\nHowever when using the Update function on the Model it works fine.\r\n\r\nSeems like a bug and should probably have a test for it, (get a record then save it)"},"comment":{"url":"https://api.github.com/repos/balderdashy/sails-redis/issues/comments/132837361","html_url":"https://github.com/balderdashy/sails-redis/issues/24#issuecomment-132837361","issue_url":"https://api.github.com/repos/balderdashy/sails-redis/issues/24","id":132837361,"user":{"login":"Ryanc1256","id":4016144,"avatar_url":"https://avatars.githubusercontent.com/u/4016144?v=3","gravatar_id":"","url":"https://api.github.com/users/Ryanc1256","html_url":"https://github.com/Ryanc1256","followers_url":"https://api.github.com/users/Ryanc1256/followers","following_url":"https://api.github.com/users/Ryanc1256/following{/other_user}","gists_url":"https://api.github.com/users/Ryanc1256/gists{/gist_id}","starred_url":"https://api.github.com/users/Ryanc1256/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ryanc1256/subscriptions","organizations_url":"https://api.github.com/users/Ryanc1256/orgs","repos_url":"https://api.github.com/users/Ryanc1256/repos","events_url":"https://api.github.com/users/Ryanc1256/events{/privacy}","received_events_url":"https://api.github.com/users/Ryanc1256/received_events","type":"User","site_admin":false},"created_at":"2015-08-20T00:37:05Z","updated_at":"2015-08-20T00:37:05Z","body":"@FabienHenon woop's forgot to msg you back.... \r\nComment this line out\r\nhttps://github.com/balderdashy/sails-redis/blob/master/lib/database/index.js#L555\r\nI think that should fix your problem until someone actually fixes it..."}}