Hi

Thank you for your help. Regarding to the user/group-relation: I would
like to move a user up and down in ONE specified group. There are
users in other groups for example which should not interfer with this
particular "reorder-action".

Example:

User, Group, lft, right

UserA, GroupA, 1, 2
UserB, GroupA, 2, 3
UserC, GroupB, 3, 4
UserD, GroupA, 4, 5

Now here is the problem: If I would like to move UserD between UserA
and UserB, I've to skip UserC in any way. If the parents are in the
same table, the situation is clear (handled by Cake) but here "Cake"
does not know UserC belongs to another branch. Of course it won't ;)

Should I try to make "dummy"-parents and exclude them from any
queries ? Or is this ugly?

Thank you again,
Frank

On Mar 15, 6:03 pm, Jon Bennett <[email protected]> wrote:
> > Think of it like an user/group relation with two tables. Each user
> > belongs to only one group. Now I would like to move the user user up
> > and down in an automagic way...
>
> Ahh! ok, in that case, you've gone about it slightly the wrong way.
>
> Your User model isn't a tree, teh groups ahh. You don't move the user
> around the tree, you change the group that user belongs to.
>
> You can then change the position of a group till your hearts content.
>
> J
>
> --
> jon bennett -www.jben.net- blog.jben.net

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to