>Have you created all the belongsTo and hasMany relationships that you
> need to link the two tables together?

yes, my models look like this:
note.php:
var $belongsTo = array('User' =>        array('className' => 'User',
                                'conditions' => '',
                                'order' => '',
                                'foreignKey' => 'user_id'
                               )
                          );

user.php:
var $hasMany = array('Note' =>array('className' => 'Letter',
                                     'conditions' => '',
                             'order' => '',
                             'limit' => '',
                             'foreignKey' => 'user_id',
                             'dependent' => true,
                             'exclusive' => false,
                              'finderSql' => ''
                          )
                           );

Is there something wrong with my models?


--~--~---------~--~----~------------~-------~--~----~
 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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to