I have this case working in an app of mine, no problem whatsoever. Cake just gets the data in two steps and combines it. (I'd rather it does a cross-database JOIN, but it works anyway.)
Chrs, Dav On 8 Oct 2008, at 22:07, [EMAIL PROTECTED] wrote: > > David: > I can see how that would work for hasMany. But for hasOne, belongsTo > and (I think) HABTM Cake joins the tables to get the data in a single > query. Does Cake honor useDbConfig in these cases? > > /Martin > > > On Oct 8, 1:08 pm, "David C. Zentgraf" <[EMAIL PROTECTED]> wrote: >> Set up multiple database connections in >> database.php.http://book.cakephp.org/view/40/Database-Configuration >> >> Configure your models to use the appropriate >> connection.http://book.cakephp.org/view/435/useDbConfig >> >> The associations between models work exactly the same, no extra work >> needed. >> >> On 8 Oct 2008, at 17:06, [EMAIL PROTECTED] wrote: >> >> >> >>> Hi >>> I have read many posts about "How make associations between models >>> on >>> different database" >>> but I have not yet understood how can I do this. >>> Can someone explain how I can do this for all type of associations >>> (in >>> particular for HABTM)? >>> Many thanks > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 -~----------~----~----~----~------~----~------~--~---
