Here's some more on answering the often asked question of "how do I
make my associations" :

--------------------
Q. None of the associations provided by CakePhp fit what I want to do.
A. In most cases you can express your association in terms of Cake's
associations.

For instance if you have an Organisation and a Person such that your
relationship between the
two is "An Organisation is founded by a Person" and "A person founds
an Organisation", this can easily be expressed as
"An Organisation belongs to a Person" and "A person has many
Organisations" - so you can use Cake's associations directly.

In some cases the semantic meaning is lost, but you can still use
Cake's associations  -- for instance for a movie database you want to
express the relationship "has played in the same film as" between
Actors. While the semantic meaning is different, you
can still model this using the "has and belongs to many" relationship.

In other cases, Cake's associations may not be the best route to go --
for instance to model relationships such as "is a special kind of" or
"acts as".
To implement such relationships, it may be usefull to look at
behaviours (see manual) rather than associations.

--------------------

Anselm


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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