Replies: 1 comment
-
|
Anyone? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone! I was wondering if there was a way to configure the
HasManyrelationship table to dissociate (unlink) entries instead of deleting them. Basically, I would like to have the same behavior as theBelongsToManyfield that detaches (unlinks) the related entry instead of deleting it.It feels like a huge UX issue in most cases. One of our example relationship is a one to many between sectors (i.e. Education) and organizations (i.e. University of Toronto). An organization can only belong to a single sector but a sector can have many related organizations. Now, if we access the "show" view of a sector, there's a listing of related organizations. If an organization was misplaced in this sector, we would like to be able to dissociate (unlink) it from the sector via the relationship table, but now, if a user misjudges the delete button for a dissociate button, it will unwillingly delete the targeted organization. The only way to dissociate is to leave the sector's "show" view by going to the organizations index, edit the target organization and remove the sector.
Thanks in advance for your help,
Beta Was this translation helpful? Give feedback.
All reactions