I'm currently combining two web apps, both with their own databases (but located on the same server). One app is Pligg-based and handles user-authentication. The other app (mine) is CakePHP-based, and manages all of the "resources."
I can create CakePHP models representing the user in Pligg's tables using a custom dbconfig, etc. Reading/writing it are no problem. I've also created Cake models representing my resources and can read/write them, no problem. Users can own multiple resources and resources can have multiple owners, so I believe HABTM is the right association between the models. When specifying HABTM, it's possible to specify a custom table for the association (convention would be "resources_users"), but I'm not able to (AFAIK) specify a custom dbconfig as well. The error is that whichever model gets traversed first goes looking for the association table in its dbconfig, which it will find (for one model) or it won't (for the other model). So, is what I'm looking to do possible? Or am I going to have to do the joins, etc., with straight SQL queries? (Or, more likely, just combine the databases into one for now.) Thanks, Troy. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
