Hello,

I am somewhet a newbie to CakePHP. I am trying to migrate my website
from own framework to CakePHP. Everything is wonderful until i got to
tree behavior issue for categories. I will explain a little bit what i
am trying to achieve:

I have many categories that can have multiple parent categories
ie. Travel Websites category has two parents:

Business » Travel » Travel Websites
AND
Internet » Websites » Travel Websites

DATA MODEL:

Categories
  id, category_id

Categories_Categories
 id, parent_id, category_id

I have looked in CakePHP's book at the Tree Behavior chapter. I saw
that a node (category) can have only 1 parent node (category). This
behavior seems not to work with multiple parent nodes. Anyone is able
to give me some hints if there is a work around for my issue with tree
behavior?

I have thought about this for past few days and I am stuck. Any help
is greatly appreciated! Thanks in advance for your time!

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