You can get pretty far on existing database tables if you use the
array notation.
<http://manual.cakephp.org/chapter/models>
look at the end where it talks about Associations and you can see how
you can manually set the foreign keys and tablenames

 but given CakePHP's focus on convention over configuration you will
do better the closer your database tables meet the conventions

<http://manual.cakephp.org/appendix/conventions>




On 1/26/07, Devraj Mukherjee <[EMAIL PROTECTED]> wrote:
>
> Hi Eric,
>
> What do you mean by existing database which has a schema and doesn't
> conform to to what CakePHP is expecting?
>
> As far I understand CakePHP introspects the database to figure out
> what fields (variables) it should have.
>
> On 1/27/07, Erich C. Beyrent <[EMAIL PROTECTED]> wrote:
> >
> > CakePHP is a wonderful framework if you are starting from scratch.
> > Every example and tutorial I have seen uses freshly minted database tables.
> >
> > But how easy is it to layer CakePHP on top of an existing database which
> > has a schema that doesn't conform to what CakePHP is expecting?  Is it
> > possible to use CakePHP in this manner, or will I have to define all the
> > queries manually?
> >
> > Anyone have any case studies to share on this topic?
> >
> > -Erich-
> >
> > >
> >
>
>
> --
> "I never look back darling, it distracts from the now", Edna Mode (The
> Incredibles)
>
> >
>


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

Reply via email to