This message was deleted.
# box-products
s
This message was deleted.
s
child entities?
r
I have a class
Forward
which inherits from
Trade
. This child class is a discriminated entity.
image.png
in my
Trade
class I have the
applyGlobalScopes
function
Nevermind. The issue seems to stem from calling
retrieveQuery()
the
retrieveQuery
function does not activate global scoeps before returning.
s
Because it drops to QB
I don't use discriminated entities so don't know about those
r
I called applyGlobalScopes() before retireveQuery() returns and it seems to work. I will have to test it again quick's test to see if it breaks anything.
s
oh, hm, global scopes should be applied as soon as you getInstance
after DI
even if you later drop to QB. It just can't use all of them necessarily
r
My understanding was global scope are only applied when you call get/first/find/etc
e
It should be how @sknowlton described it.
If not, please file an issue (and a PR? fingers crossed)