Either hasOne or hasMany, yes. I believe that associations have to go both ways in order to work correctly. For instance, if you use recursive = 1 and query taxes, it should give you the relevant locations, but querying locations will not give you taxes unless you set up the reverse association.
HTH, Eric On 2/16/07, Felix St. Bernard <[EMAIL PROTECTED]> wrote: > > > I'm a little confused here.... > > I have 2 tables "Taxes" and "Locations" > > Table Tax has a foreign key called 'locations_id' and in it's model I've > defined a belongsTo association "var $belongsTo = 'Location';" I'm using > scaffolding for the time being to get my relations in order. However > this association shows no indication that it's working. What other > association would I need to define? Would I need to define a Location > hasOne Tax?..... > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
