Bookmark Model:
var $belongsTo = array(
'User' =>
array('className' => 'User',
'foreignKey' => 'user_id',
'conditions' => '',
'fields' => '',
'order' => ''),
'Post' =>
array('className' => 'Post',
'foreignKey' => 'post_id',
'conditions' => '',
'fields' => '',
'order' => ''));
The table is id, user_id and post_id
-----Original Message-----
From: Miles J [mailto:[email protected]]
Sent: April-11-09 9:01 PM
To: CakePHP
Subject: Re: Containable
So a bookmark has many posts correct? What does that association look like
in your model.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---