I am trying to pull a Post and the note associated to it from a Bookmark
table but nothing is coming.
POST hasMany
'Bookmark' => array(
'className' => 'Bookmark',
'foreignKey' => 'post_key',
'dependent' => true
),
BOOKMARK belngsTo
'Post' => array('className' => 'Post',
'foreignKey' => 'post_key',
));
BOOKMARK TABLE
id
user_id
post_key
note
What is wrong with my associations?
I tried contain but shows up empty inthe array, recursive 2 still the same,
added dummy notes into the db for the particular post, but noting in the
array
Suggestions?
Dave
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---