DMZ 1.7.1 (DataMapper OverZealous Edition) |
[eluser]OverZealous[/eluser]
@introvert You have several problems. First, you can't use the keyword parent for anything. This is specifically highlighted in the red section at the top. Second, the documentation for Self Relationships (scroll down) pretty much defines the exact relationship you are talking about. Instead of parent / group, it's called post / relatedpost. You'll have to come up with a different name (ie: group / parent_group), but the format should look exactly the same. Also, it sounds like you really want a one-to-many relationship. Otherwise it's just a long chain (not a tree). Here's the basic structure to get you started: Code: ... Your groups table needs to have a parent_group_id column. As for using HTMLForm - I can no longer support that extension. |
Welcome Guest, Not a member yet? Register Sign In |