hi there
I want to make a product model that has a country_of_fabrication and a
country_to_sale_too. Of course, both of these fields are related to
the same countries table. In the product add view I want to have two
SELECT elements populated with the countries table entries (the well
known country drop-down list)

Question one
Do I have to build a model for the countries table? I don't need to
edit that table.

Question two
How do I make the association in  the product model?
hasOne? hasMany?

It's very easy in plain old php programming, but here I'm lost.

Sorry if it's obvious, but I am new to the MVC concept.

TIA

--~--~---------~--~----~------------~-------~--~----~
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