I would suggest looking also in the models section of the http://manual.cakephp.org and look in particular at the array notation for defining associations, here you should be able to see how you can override the conventions in cakephp with some configuration to take care of 'out of spec' database data.
On 2/5/07, Chris Hartjes <[EMAIL PROTECTED]> wrote: > > On 2/5/07, lukemack <[EMAIL PROTECTED]> wrote: > > > > hi, > > > > i'm going to need to access some legacy data from another system in my > > cake app. i understand that i can add an additional database > > connection in the database config file and have the model use that > > connection. however, if i then need the data in a legacy database > > (e.g. product data) to relate to models in the main cake app database, > > how is this best achieved? > > > > > > Although I am lazy and won't provide you with example, rest assured > that you can override the built in values and use non-Cake-standard > field names as your primary key. Dig around in api.cakephp.org, > focusing on the models section. > > This is probably an opportunity for me to up my mojo and provide a > nice blog post later today or early tomorrow on how to override all > the values in a CakePHP model configuration, thereby earning the > praises of CakePHP developers everywhere. > > Besides, it's Monday and my inner Grumpy Old Programmer is in full control. > > > -- > Chris Hartjes > > My motto for 2007: "Just build it, damnit!" > > rallyhat.com - digitial photo scavenger hunt > @TheBallpark - http://www.littlehart.net/attheballpark > @TheKeyboard - http://www.littlehart.net/atthekeyboard > > > > -- == S. DeVore (the old fart) the advice is free, the lack of crankiness will cost you - its a fine line between a real question and an idiot --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
