Relation module, as of its most recent stable release, allows relations with an arity of 1, e.g: relations that have only a single entity as endpoint. RedHen doesn't currently support this; the redhen_relation_connection_form requires the current entity plus a second entity to be entered, regardless of relation arity.
The relationships table also needs a small change to not count the current entity as duplicate if the relationship has an arity of 1.
To help me manage different kinds of memberships, such as organisation memberships with different numbers of attached members and individual memberships, this would be a very helpful feature.
Comments
Comment #1
cafuego commentedAttached patch changes the relation form to make the second entity optional (or hide its input altogether) depending on the arity of the selected relationship. The validate handler checks the relationship arity and sets endpoints appropriately.
The relationships list gracefully handles single-entity relations.
Comment #3
levelos commented