Hello there.
I have two entities which share a many-to-many relationship.
Tag <—> Person
So a person can have many tags, and a tag can have many people associated with it. All good so far.
Now tags can only be selected from a predetermined list; you cannot add a new tag through an editor, so I thought that a TwinColumn would be the best to display it.
Person contains list of tags that are linked through the link table added by Cuba studio
I defined the twin column as follows:
Now when I add tags and save the page, the link table is correctly filled in (I’ve looked on the database and the linked records are there), but when I return to the page, the right side of the twincolumn (which should be populated by the list Person.tags) is blank.
I suspect the problem is that the TwinColumn is trying to populate from the link table, and not the actual tags.
Is this the correct use for the TwinColumn, or is there a better way to do it?