model.relation.afterDetach

Triggered in October\Rain\Database\Relations\BelongsToMany.

Called after removing a relation between models (only for BelongsToMany relation)

Example usage:

$model->bindEvent('model.relation.afterDetach', function (string $relationName, array $attachedIdList) use (\October\Rain\Database\Model $model) {
    traceLog("Relation {$relationName} was removed", $attachedIdList);
});