Well, if you already have the default_address_id field in the table,
you can just do some array magic to pull out the one with that Id or,
you can make another call once you have the user array (for a single
user).

Your best bet is to use the array magic goodness with sprinkles and
pluck out what you need.

On Nov 28, 3:02 pm, FrenchEscapes <[EMAIL PROTECTED]> wrote:
> I have a customers table and an addresses table, customers hasMany
> addresses, that bit's easy.
>
> But I want each customer to have a default address in the addresses
> table. I have a field 'default_address_id' in the customer table. I
> just can't get my head around how to use associations to link them.
>
> Thank you in advance.
>
> Duncan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to