I am using CakePHP 3.6.15 with lifecycle callbacks.
I have Model A and Model B with belongsToMany association using the Model C as joinTable.
When I do a save on model A which modifies content of model C (add data, for example) the afterSave event of model C is never fired. But if I add data directly on model C and then call save on the model, the afterSave event is fired.
Is this the normal behavior? I think yes. So, how can I fire afterSave event on model C when the data of this model is modified, even if the change is done by saving on another model?