Using cakephp, I have a common address table that I want to associate with customers, sellers, contacts. most tables only have 1 to 1 relationships, but I want my clients table to have 2
possible to clarify: I have a customer table
id, int
mailing_address_id, int
billing_address_id, int
and address table
id,int
addr, varchar
city, varchar
etc....
Now I know what I can put customer_idin the address table. But I do not want to do this, because I have a table of suppliers, a table of contacts and other tables that everyone will use in the table of addresses. customer_idactually will not match other tables.
I would like the Customer model to automatically bind in two addresses