Add test for hasMany set method with custom primary keys
Fix bug in hasMany.set when models have custom primary keys
Fix unit test
Merge pull request #1974 from LJ1102/fix-hasmany-set-custom-primary-keys-master

Fix hasmany set custom primary keys