filament/filament
v3.2.117
v11.27.2
No response
php 8.2
Associate and Dissociate actions don't work with a MorphMany relationship. I got an error :
I have 3 models : Client, Entreprise and Interlocuteur.
Relations between them are :
Client :
public function interlocuteurs(): MorphMany { return $this->morphMany(Interlocuteur::class, 'interlocuteurable'); }
Entreprise :
public function interlocuteurs(): MorphMany { return $this->morphMany(Interlocuteur::class, 'interlocuteurable'); }
Interlocuteur :
public function interlocuteurable(): MorphTo { return $this->morphTo(); }
The record should be dettached from the Client or Entreprise.
Create a user
Create a Client record
Create a Entreprise record
Create an interlocuteur attached to a Client or a Entreprise
Try to dissociate the Interlocuteur
https://github.com/rfiette/FilamentMorphBug2
No response
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too