Skip to content

Commit 7035b7a

Browse files
committed
Make Model.get respect Model autoFetch default value (#277)
1 parent 7302c7c commit 7035b7a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/Model.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,9 @@ function Model(opts) {
262262
conditions[opts.id[i]] = ids[i];
263263
}
264264

265+
if (!options.hasOwnProperty("autoFetch")) {
266+
options.autoFetch = opts.autoFetch;
267+
}
265268
if (!options.hasOwnProperty("autoFetchLimit")) {
266269
options.autoFetchLimit = opts.autoFetchLimit;
267270
}

0 commit comments

Comments
 (0)