Okay, im trying a different tack
I have added a column to my payments table: pay_user which stores the
member id
So, a member can have many payments and a payment belongs to a member,
right?
in my members model:
var $hasMany = array(
'Payment' =>
array('className' => 'Payment',
'foreignKey' => 'pay_user',
)
);
and in my payment model
var $belongsTo = array(
'Member' =>
array('className' => 'Member',
'foreignKey' => 'pay_user',
)
);
But its not working :( Can anyone help? I'm hating on model
associations big time right now....
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---