Make sure the $hasMany and $belongsTo are capitalized correctly
var $hasMany = "Product";
On 5/12/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> I have downloaded last nightly build cake_nightly_20.03.2006.
>
> My app has the model (this is different files)
>
> class Group extends AppModel {
> var $hasMany = "product";
> }
> ...
> class Product extends AppModel {
> var $hasMany = "result";
> var $belongsTo = "group";
> }
> ...
> class Result extends AppModel {
> var $belongsTo = "product";
> }
>
> I have problem with select-ftag for product's group field. It's empty
> for Add/Edit view.
> But if I add id in table manually, i see correct relation in index
> view.
> What's the problem?
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---