Your models should look like this. These are brief. Your actual arrays
should also contain conditions, order, limit, foreignKey, dependent,
exclusive, and finderSql.

User extends AppModel
{
  var $hasMany = array('Post' => array('className' => 'Post'));
  var $hasOne = array('Profile' => array('className' => 'Profile'));
}

Post extends AppModel
{
  var $belongsTo = array('User' => array('className' => 'User'));
}

Profile extends AppModel
{
  var $belongsTo = array('User' => array('className' => 'User'));
}

Make sure to read the CakePHP manual about models, and to follow Cake's
naming conventions for your foreign key. Post your models, and we can
get a better idea. What version of Cake are you using?


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

Reply via email to