Fix bug in hasMany.set when models have custom primary keys, add unit test
Run on me travis
Merge pull request #1970 from LJ1102/fix-hasmany-set-custom-primary-keys

Fix bug in hasMany.set when models have custom primary keys, add unit test