-
Actual BehaviourQuerying a model triggers retrieved event when it shouldn't
Expected BehaviourNot triggering the event Steps to Reproduce
Possible Solutions
Am'I missing a config key or somethings? EDIT: The problem happens when I include 2 traits: Auditable and Metable. I still don't know which one is the one that is actually triggering the error. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
When I run a query over a model, Auditable is looking for an attribute of the model: Adding this to model solves it:
|
Beta Was this translation helpful? Give feedback.
When I run a query over a model, Auditable is looking for an attribute of the model:
$auditEvents
This variable is optional, if the model doesn't have it, Metable kicks in and tries to get it from the meta table. This has haunted me for more than 2 years, glad I finally figured it out.
Adding this to model solves it: