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
Hi all,
I have a many-to-many relationship between a Model A and a Model B, with a pivot table with different values.
I have a situation where a Model A does have the same Model B record twice (the difference is in the pivot table).
Filament handle well the list of the related models (I see 2 records), but it is not able to handle the edit and view of the related model, because it always open the first one (I am aware that actually the related model is only one).
Is there a chance to tell Filament to use the primary key of the pivot table in a relationship?
Or, if it's not possible, atleast change the edit / view url of the modal, so I can add a query string parameter to it?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Package
Panel builder
Package Version
v3.3.5
How can we help you?
Hi all,
I have a many-to-many relationship between a Model A and a Model B, with a pivot table with different values.
I have a situation where a Model A does have the same Model B record twice (the difference is in the pivot table).
Filament handle well the list of the related models (I see 2 records), but it is not able to handle the edit and view of the related model, because it always open the first one (I am aware that actually the related model is only one).
Is there a chance to tell Filament to use the primary key of the pivot table in a relationship?
Or, if it's not possible, atleast change the edit / view url of the modal, so I can add a query string parameter to it?
Beta Was this translation helpful? Give feedback.
All reactions