Edit
/app/models/user.php
and add
var $hasMany = array('Reminder'); var $belongsTo = array('Carrier');Upload the file.
Like when a model belongs to another model, if the foreign key is not standard you need to explicitly define it. You can also explicitly define the class name if that isn't the default also.
var $hasMany=> array( 'Reminder' => array( 'className' => 'Reminder', 'foreignKey' => 'UniqueUserID' ) );
No comments:
Post a Comment