I finally managed to get setRelationNtoN to work by changing the names of some of the fields (I usually use a scheme like film_fk to distinguish it from film_id in the main database but that doesn’t work with GroceryCRUD, it turns out).
But now that I have it working there’s another issue I have run into. When adding/editing I don’t want to show all fields in the database and I also want to change the default order of the fields that I do want.
But this seems to be impossible because when using $crud->fields and trying to put in one of the new setRelationNtoN fields it stops the modal from even being loaded.
The example page also shows all fields in the database when editing, as far as I can tell.
Is there anyway to select and order just a limited number of fields? I truly hope so, otherwise this just won’t work for me.
Edit: just in case it matters, I am using version 2.7.4. (As it turned out I should have tried to download the newest version on the day before my purchase lapsed, not the day itself…)