fix issue with hasMany when custom primary keys are used