Fixes embedded hasMany primary key lookup.
Merge pull request #2080 from alexBaizeau/bug/embeddedHasManyKey

[BUGFIX] Fixes embedded hasMany primary key lookup.