MorphToMany relation not being invalidated #494
denitsa-md
started this conversation in
General
Replies: 1 comment
-
|
Same issue with
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
First off, thank you for the package!
I'm not sure if I'm doing this wrong or it's simply not supported but here it is:
Describe the bug
I have a Subscription model that has a
morphToManyrelation to setting keys (so a many to many polymorphic). The Subscription model is not cacheable and the relation to setting keys looks like this. TheSettingmodel (the pivot) is also not cacheable.The
SettingKeymodel on the other hand usesCachable.Eloquent Query
This test will fail with
Failed asserting that 1 matches expected 0.at the last line:This test with
disableCachewill pass:I'm using the
arraydriver for testing. (We do have thefiledriver in production although it's not officially supported anymore.. I hope to be switching it over to redis soon as we'll need to cache some more things).Stack Trace
....
Environment
Beta Was this translation helpful? Give feedback.
All reactions