country_of_fabrication as has one country and the country_to_sell_to
has one country.
On Sep 25, 6:10 pm, spooknick <error...@migroz.com> wrote:
> 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 cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment