Thats exactly why I seperated these things into two tables. They don't
belong together in a semantical manner. User/group is only an example,
but it shows what I mean.

To make it clear.

Table A - Item 1
   + Table B - Item 1
   + Table B - Item 2
   + Table B - Item 3
Table A- Item 2
   + Table B - Item 1
   + Table B - Item 2
   + Table B - Item 3

a.s.o.

Having a look at my second post...how can I reorder the items of Table
B in its own branch?

On Mar 15, 9:15 pm, Jon Bennett <[email protected]> wrote:
> 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?
>
> I think things are rather complicated at the mo. Semantically, how can
> a user also be a group? If you remove groups entirely, and say that a
> user that has children is a 'group', doesn't your problem go away?
>
> Cheers,
>
> 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