One thing you must do when using a class multiple times for different
associations is name the first level index in the array something other then
the 'className', it is known as an alias association. If you do not follow
this advice you will overwrite and get unexpected results
var $hasOne = array('MainAuthor' =>
array('className' => 'Author',
'dependent' => false,
'foreignKey' => author_id')),
array('AssitantAuthor' =>
array('className' => 'Author',
'dependent' => false,
'foreignKey' => 'author_id'));
--
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access public
*/
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---