Can you help me with the user hierarchy?
Hi, I am trying to create a hierarchy for users. Each user can have a referrer (parent), while in the RelationManager I need to display all the children of the given user. Not only the direct ones, but also the recursive ones.
For example, I have the following users in my database:
So I created these relationships for User model:
I also created RelationManager for children:
Finally, my problem is, that when I open John resource, I only see Jane as children, but I want to see also Baby.
Can anyone help me, please?
A better example would be a category that has parent and child categories, but the principle is the same.
For example, I have the following users in my database:
So I created these relationships for User model:
I also created RelationManager for children:
Finally, my problem is, that when I open John resource, I only see Jane as children, but I want to see also Baby.
Can anyone help me, please?
A better example would be a category that has parent and child categories, but the principle is the same.