Well that kind of worked!
I have put:
var $hasMany = array(
'Address' => array('className' => 'Address',
'foreignKey' => 'customer_id'
),
);
var $belongsTo = array(
'Address' => array('className' => 'Address',
'foreignKey' =>
'default_address_id',
),
);
I am still using scaffolding while I get the structure of the site
sorted, when you view a customers record it will give a link to the
default address which is perfect, but where it lists the related
addresses it shows lists of letters. The letters are the first letter
of each field in the default address. confused? Look here:
http://i126.photobucket.com/albums/p91/frenchescapes/CakePHP-therapiddevelopmentphpframe.png
. The bottom two records are the addresses that are meant to be linked
to the customer.
Although this is not a problem because eventually I will not be using
scaffolding, just a little confused as to why it is doing it!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---