>However, strictly speaking it does not provide any way to prevent an
Address to belong to a Person and an Organization at the same time.

?

If on the address table there are 2 fields 'class' and 'foreign_id'
which are used to define to which class and object the address relates
it is not possible for the same address to point to more than one
person/org. If you are defining in the person/org class which is their
address by setting a field named address_id the foreign key is in the
wrong table.

Matt. Interesting comments. I disagree that an address is anything
other than an address; creating 2 sets of near identical tables for
anything should surely raise a question in the mind ;).

Anyway, hth,

AD7six


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to