Closed MordantWastrel closed 1 year ago
Global scopes are invoked on relationships.
Global scopes are invoked on entities loaded with .retrieveQuery()
.retrieveQuery()
Global scopes are not invoked on entity relationships loaded with .retrieveQuery() (User.posts().retrieveQuery().get())
User.posts().retrieveQuery().get()
This PR adds a test demonstrating this to GlobalScopeSpec.cfc
GlobalScopeSpec.cfc
Relates to https://github.com/coldbox-modules/quick/issues/221
Global scopes are invoked on relationships.
Global scopes are invoked on entities loaded with
.retrieveQuery()
Global scopes are not invoked on entity relationships loaded with
.retrieveQuery()
(User.posts().retrieveQuery().get()
)This PR adds a test demonstrating this to
GlobalScopeSpec.cfc
Relates to https://github.com/coldbox-modules/quick/issues/221