dresende / node-orm2

Object Relational Mapping
http://github.com/dresende/node-orm2
MIT License
3.07k stars 379 forks source link

hasOne with omit() and only() feature? #649

Open hebbian opened 9 years ago

hebbian commented 9 years ago

Is there a way to limit the automatic fetch of association fields just like omit() or only() does on hasOne relationship if I set autoFetch to true?

Thanks.

hebbian commented 9 years ago

Need answer please

hebbian commented 9 years ago

?

hebbian commented 8 years ago

Bump

dxg commented 8 years ago

I believe you can pass autoFetch: false when getting/finding but it doesn't allow specifying which models to skip; it will skip all.