Fixed bug when using accessors as primary key
Merge pull request #17 from peterjoel/patch-1

Fixed bug when using accessors as primary key