Replies: 3 comments
-
@Restingo thank you for reporting this. If you can provide a PR with a failing test, or even the fix, that would help out tremendously. |
Beta Was this translation helpful? Give feedback.
-
@mikebronner thanks for your fast response. Would it also be sufficient to commit the models and some test controller? I don't know in which file I need to put the test case :( |
Beta Was this translation helpful? Give feedback.
-
@Restingo Hey, in that case I would recommend just setting up a test repo that demonstrates the problem (comment the code where the problem happens). That will help write the test. |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
I've got two models, lets name them
Company
andContact
. I've also got a pivot modelCompanyContact
. For the pivot model I've created an observer that is calledCompanyContactObserver
.Now if model caching is enabled via
.env
file theCompanyContactObserver
doesn't fire.Eloquent Query
Please provide the complete eloquent query that caused the bug, for example:
Stack Trace
None.
Environment
Additional context
If model caching is disabled the observer fires instantly.
Beta Was this translation helpful? Give feedback.
All reactions