Tiny fix: use setAttributes
Merge pull request #210 from fabien/fix/embeds-many

Tiny fix: use setAttributes
Refactor modelTo logic into lookupModelTo
Merge pull request #209 from fabien/fix/refactor-modelto

Refactor modelTo