So I know its possible to call a child model, from the parent model if
it is set in a hasOne, hasMany, belongsTo, like so:
function Profile extends AppModel {
var $hasOne = array('User');
}
$this->Profile->User->find();
Now recently I tried doing this on a HABTM association and I get the
"Model "Child" is not associated with model "Parent"" error. So are we
not able to do this with HABTM relations? Just want to clarify and see
if im doing something wrong.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---