I am creating a tree survey system in QGIS. There will be three geometry layers (called 'Single Trees', 'Line of Trees & Hedges', 'Groups of Trees') and each of those layers has a 'TreeUUID' field that generates a UUID automatically.
I want to be able to link features on these layers to another layer ('stems') so that a feature one of the first 3 layers can potentially have multiple entries into 'stems'.
My attempt was to create a polymorphic relationship like this:
However I cannot then create the relation reference field on the 'stems' layer:
It looks to me like it should work. I can create a child feature on 'stems' from the main 3 layers but they do not link properly once created. I am unsure exactly what I am missing and there seems to be relatively little information available about polymorphic relationships in QGIS. Does anyone have any ideas?