{"action":"opened","issue":{"url":"https://api.github.com/repos/tgriesser/bookshelf/issues/1127","repository_url":"https://api.github.com/repos/tgriesser/bookshelf","labels_url":"https://api.github.com/repos/tgriesser/bookshelf/issues/1127/labels{/name}","comments_url":"https://api.github.com/repos/tgriesser/bookshelf/issues/1127/comments","events_url":"https://api.github.com/repos/tgriesser/bookshelf/issues/1127/events","html_url":"https://github.com/tgriesser/bookshelf/issues/1127","id":133745492,"number":1127,"title":"lack of support for non-primitive primary keys","user":{"login":"helios1138","id":7106681,"avatar_url":"https://avatars.githubusercontent.com/u/7106681?v=3","gravatar_id":"","url":"https://api.github.com/users/helios1138","html_url":"https://github.com/helios1138","followers_url":"https://api.github.com/users/helios1138/followers","following_url":"https://api.github.com/users/helios1138/following{/other_user}","gists_url":"https://api.github.com/users/helios1138/gists{/gist_id}","starred_url":"https://api.github.com/users/helios1138/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/helios1138/subscriptions","organizations_url":"https://api.github.com/users/helios1138/orgs","repos_url":"https://api.github.com/users/helios1138/repos","events_url":"https://api.github.com/users/helios1138/events{/privacy}","received_events_url":"https://api.github.com/users/helios1138/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-15T15:46:05Z","updated_at":"2016-02-15T15:46:05Z","closed_at":null,"body":"I'm using uuids as primary keys, so they are stored in db as binary and in models as `Buffer`. I've overridden `set()` and `toJSON()` of the base model methods and it made it somewhat working, however there are still some bits of logic (especially in collections, maybe some in relations) related to primary key comparison that basically does `if(id === someOtherId)` which obviously fails on `Buffer`.\r\n\r\nIs there a plan on getting that fixed?"}}