不要怂,就是干,撸起袖子干!

Commit e78da7f9 by Juarez Lustosa Committed by GitHub

docs(association): use correct scope name (#12204)

1 parent a5a60f9f
...@@ -58,7 +58,7 @@ Bar.addScope('open', { ...@@ -58,7 +58,7 @@ Bar.addScope('open', {
} }
}); });
Foo.hasMany(Bar); Foo.hasMany(Bar);
Foo.hasMany(Bar.scope('testTitleScope'), { as: 'openBars' }); Foo.hasMany(Bar.scope('open'), { as: 'openBars' });
``` ```
With the above code, `myFoo.getOpenBars()` yields the same SQL shown above. With the above code, `myFoo.getOpenBars()` yields the same SQL shown above.
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!