{"action":"created","issue":{"url":"https://api.github.com/repos/dresende/node-orm2/issues/681","labels_url":"https://api.github.com/repos/dresende/node-orm2/issues/681/labels{/name}","comments_url":"https://api.github.com/repos/dresende/node-orm2/issues/681/comments","events_url":"https://api.github.com/repos/dresende/node-orm2/issues/681/events","html_url":"https://github.com/dresende/node-orm2/pull/681","id":120497043,"number":681,"title":"Has one with zero","user":{"login":"stueynz","id":7577039,"avatar_url":"https://avatars.githubusercontent.com/u/7577039?v=3","gravatar_id":"","url":"https://api.github.com/users/stueynz","html_url":"https://github.com/stueynz","followers_url":"https://api.github.com/users/stueynz/followers","following_url":"https://api.github.com/users/stueynz/following{/other_user}","gists_url":"https://api.github.com/users/stueynz/gists{/gist_id}","starred_url":"https://api.github.com/users/stueynz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stueynz/subscriptions","organizations_url":"https://api.github.com/users/stueynz/orgs","repos_url":"https://api.github.com/users/stueynz/repos","events_url":"https://api.github.com/users/stueynz/events{/privacy}","received_events_url":"https://api.github.com/users/stueynz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-12-04T22:12:15Z","updated_at":"2015-12-08T01:48:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/dresende/node-orm2/pulls/681","html_url":"https://github.com/dresende/node-orm2/pull/681","diff_url":"https://github.com/dresende/node-orm2/pull/681.diff","patch_url":"https://github.com/dresende/node-orm2/pull/681.patch"},"body":"I've got a pre-existing database that started all its 'serial' IDs at zero...so I need to allow for Zero as a valid value for FK column in hasOne().\r\n\r\nhasValues() is only used in hasOne association, so it's probably ok to make this change."},"comment":{"url":"https://api.github.com/repos/dresende/node-orm2/issues/comments/162732896","html_url":"https://github.com/dresende/node-orm2/pull/681#issuecomment-162732896","issue_url":"https://api.github.com/repos/dresende/node-orm2/issues/681","id":162732896,"user":{"login":"dxg","id":227785,"avatar_url":"https://avatars.githubusercontent.com/u/227785?v=3","gravatar_id":"","url":"https://api.github.com/users/dxg","html_url":"https://github.com/dxg","followers_url":"https://api.github.com/users/dxg/followers","following_url":"https://api.github.com/users/dxg/following{/other_user}","gists_url":"https://api.github.com/users/dxg/gists{/gist_id}","starred_url":"https://api.github.com/users/dxg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dxg/subscriptions","organizations_url":"https://api.github.com/users/dxg/orgs","repos_url":"https://api.github.com/users/dxg/repos","events_url":"https://api.github.com/users/dxg/events{/privacy}","received_events_url":"https://api.github.com/users/dxg/received_events","type":"User","site_admin":false},"created_at":"2015-12-08T01:48:57Z","updated_at":"2015-12-08T01:48:57Z","body":":+1: "}}