You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a general ContactsRelationManager that is being used by multiple entities (e.g. Customer, Prospect, etc.), this is to prevent having to maintain multiple relation managers that do the same thing (DRY).
When setting the $incrementing value to true on a MorphPivot model, I am unable to do any actions on the Filament table rows (view, edit, delete). When setting this value to false, the actions work as expected.
Expected behavior
I expect that when clicking on the row, or on any actions on that row, it will execute the same logic as all other tables do.
Steps to reproduce
Run php artisan migrate --seed;
Goto /admin and login with test@example.com + password;
Open any entity on /admin/customers or admin/prospects;
Click on the entity table row;
Click on any Contact table row, nothing will happen;
Set the $incrementing on /App/Models/ContactEntity to false;
Click again, now it will work;
Reproduction repository (issue will be closed if this is not valid)
Package
filament/filament
Package Version
v3.2.124
Laravel Version
v10.48.23
Livewire Version
v3.5.12
PHP Version
PHP 8.3.9
Problem description
I have a general
ContactsRelationManager
that is being used by multiple entities (e.g.Customer
,Prospect
, etc.), this is to prevent having to maintain multiple relation managers that do the same thing (DRY).When setting the
$incrementing
value totrue
on aMorphPivot
model, I am unable to do any actions on the Filament table rows (view, edit, delete). When setting this value tofalse
, the actions work as expected.Expected behavior
I expect that when clicking on the row, or on any actions on that row, it will execute the same logic as all other tables do.
Steps to reproduce
php artisan migrate --seed
;/admin
and login withtest@example.com
+password
;/admin/customers
oradmin/prospects
;Contact
table row, nothing will happen;$incrementing
on/App/Models/ContactEntity
tofalse
;Reproduction repository (issue will be closed if this is not valid)
https://github.com/wbpols/morphToManyTest
Relevant log output
No response
Donate 💰 to fund this issue
The text was updated successfully, but these errors were encountered: