Thanks Chris, but the problem is that when I do a findAll() or a pagninate() I'm not getting data from both tables even though I have set my recursive var and my associations. Any suggestions?
On Jan 7, 9:13 am, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > On Jan 6, 2008 11:31 PM, Travis <[EMAIL PROTECTED]> wrote: > > > > > Hey everyone, > > > I'm trying to generate a list of employees and in that list I want to > > show the customer which that employee belongs to. In my db I have an > > employees table and a customers table and each employee has a > > customer_id field. The problem is, I want to show the customer.name > > field, not the customer_id. > > You could do this another way by doing a find() for the data set that > you are looking for, and then use Set::extract to pull out just want > you want. > > Check out this link: > > http://www.thinkingphp.org/2007/02/24/cake-12s-set-class-eats-arrays-... > > Hope that points you in the right direction. > > -- > Chris Hartjes > Internet Loudmouth > Motto for 2008: "Moving from herding elephants to handling snakes..." > @TheKeyBoard:http://www.littlehart.net/atthekeyboard --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
