Hello bakers,

I have the following relations:

Person hasOne Address
Company hasOne Address

Address belongsTo Person
Address belongsTo Company

In this case Address should contain person_id and company_id.


Is this the right way or should I do it the other way round:

Person belongsTo Address
Company belongsTo Address

Address hasOne Person
Address hasOne Company

Both, Person and Company, must contain address_id now.


Which one is the more practicable way? Does it matter at all, if I
want to use saveAll()?

Thanks in advance!

Regards, Christoph
--~--~---------~--~----~------------~-------~--~----~
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