I Hope im not wrong , but for one i think the $hasAndBelongsToMany
needs more data something like the chapter on the manual.
var $hasAndBelongsToMany = array('Tag' =>
array('className' => 'Tag',
'joinTable' => 'posts_tags',
'foreignKey' => 'post_id',
'associationForeignKey'=>
'tag_id',
'conditions' => '',
'order' => '',
'limit' => '',
'uniq' => true,
'finderQuery' => '',
'deleteQuery' => '',
)
);
So if u have Users with Subscriptions and u have the
$hasAndBelongsToMany on your User Model then u can make
$this->User->findById($id) and it will return an array with
array([Subscriptions] => array() )
Hope it helps and im also really new at this i may be wrong :D
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---