I've created a view that shows both the entity itself as well as its linked entities in one view (many-to-many relationship with extra join data).
So far so good. Now I would want for each linked entity to have a delete link/button. This would result the join data in the join table to be deleted.
Quotes have Items. So the jointable is ItemsQuotes. I added a method deleteitem to the Quotes controller and modified the form link in the edit view of Quotes to point to this method.
Now I get an exception that the record could not be found. I've passed the id of the join row and I'm making use of TableRegistry to call get($id) on ItemsQuotes.
I've tried some other things as well (my first idea was to immediately send the delete link to the ItemsQuotes controller but that doesn't seem to work (needing block views?). So what's the proper way of doing cross controller stuff? And what am I doing wrong here?
Thanks in advance.