Closed
Description
For pivot models, model events are not fired, nor can you register observables. I'm primarily talking about any relationship that requires a pivot table, and therefore extends Pivot
. There was a previous pull request, but I don't believe the workaround there will work for pivots.
If events are fired, we'd also need to be able to register observers against pivots, but that's not currently possible because Pivots can't be instantiated by themselves. (In my case, I'd like to track which user updates a model (including pivots). Am I missing something, or could Illuminate\Database\Eloquent\Model::getObservableEvents()
be a static method, thereby avoiding the second issue?
Metadata
Metadata
Assignees
Labels
No labels