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

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to