Same type relationships
Let a type reference rows of its own type: an :items row whose :parent points at another :items row, with the parent listing the items that point at it. Motivating case: item hierarchies in the backlog app. A self-referencing FK compiles and its storage paths work (roots filter, fk-eq, delete cascade), but the display is silently wrong: the join walker drops a self-edge, so both the :parent field and a virtual :children list resolve to the row's own title. M2M between a type and itself is broken end to end (duplicate joiner column, no owner side). The fix is the per-relationship join aliasing the docs already name as post-MVP, plus a way for a field source to name the edge it is reached through. Full findings from the 2026-12-01 session with Donnie are in the Details note.
- Slot
- 30600
- Status
- 10 Open
- Tags
- model, compiler
- Contributors
- Donnie, Sofia