Damn, the first part has an error. I meant this...
class Shop extends AppModel
{
...
var $hasAndBelongsToMany = array( 'Person' =>
array( 'className' => 'Person',
'joinTable' => 'persons_shops',
'foreignKey' => 'shop_id',
'associationForeignKey'=> 'person_id',
'conditions' => '',
'order' => '',
'limit' => '',
'unique' => true,
'finderQuery' => '',
'deleteQuery' => '',
),
'NewsletterPerson' =>
array( 'className' => 'Person',
'joinTable' => 'newsletter_persons_shops',
'foreignKey' => 'shop_id',
'associationForeignKey'=> 'person_id',
'conditions' => '',
'order' => '',
'limit' => '',
'unique' => true,
'finderQuery' => '',
'deleteQuery' => '',
),
);
}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---