Support of true bidirectional links
When establishing a 1-1 link to a library, it would be nice to be able to set up a true revert link as well and then establish the unicity check at field level and not at library level. Example:
- two libraries: Sport Team and Person
- A sport Team has exactly one president and one trainer,
- a Person can be president of up to one sport team and trainer of up to one sport team (can be the same team),
Do to so:
- establish a link from Sport Team to Person and identify it as President (the field name) on the Sport Team side and Sport Team President on the Person side,
- establish a link from Sport Team to Person and identify it as Trainer (the field name) on the Sport Team side and Sport Team Trainer on the person side.
Lets says we have 2 Sport Team entries (Karate and Aikido) and 2 Person entries (John Foo and Mike Bar):
- set John Foo as being the President of Karate and the Trainer of Aikido,
- set Mike Bar being the President of Aikido and the Trainer of Karate.
For the time being Memento does not support such thing (unicity id checked at librray level, not on a per field basis).
PS: on personne side, we should see two differents fields: Sport Team President and Sport Team Trainer and not just one aggregate to Sport Team entries with one entry to Karate and the other one to Aikido (as it is with the current Memento implementation of links).
Feel free to comment, improve, reject, ...

-
Anonymous commented
Please support this for 1-n and n-m links too ...