Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with $incrementing on MorphPivot #14845

Open
wbpols opened this issue Nov 19, 2024 · 0 comments
Open

Issue with $incrementing on MorphPivot #14845

wbpols opened this issue Nov 19, 2024 · 0 comments
Labels

Comments

@wbpols
Copy link

wbpols commented Nov 19, 2024

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 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

  1. Run php artisan migrate --seed;
  2. Goto /admin and login with test@example.com + password;
  3. Open any entity on /admin/customers or admin/prospects;
  4. Click on the entity table row;
  5. Click on any Contact table row, nothing will happen;
  6. Set the $incrementing on /App/Models/ContactEntity to false;
  7. Click again, now it will work;

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

  • You can donate funding to this issue. We receive the money once the issue is completed & confirmed by you.
  • 100% of the funding will be distributed between the Filament core team to run all aspects of the project.
  • Thank you in advance for helping us make maintenance sustainable!
Fund with Polar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Todo
Development

No branches or pull requests

1 participant