Try using views.

We have a lot of tables that can't be changed so we just made views
for them all to fit Cake's needs.

You can also set primaryId for each model.  Not sure about the table
naming convention.

On Jan 23, 1:29 pm, oalcarj <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I am using CakePHP 1.2 beta and am able to establish a connection to
> an Oracle 10g database on the cake homepage.  This database however
> does not follow Cake's table naming conventions.  All table names are
> singular,  upper case and primary keys do not have "id" in them.  This
> cannot be changed.
>
> I am trying to generate a list of employees. I have created an
> Employee class in the model and have set the $useTable attribute
> equal  to 'EMPLOYEE' .  When I try to run $this->Employee->findAll()
> from the controller I receive a Missing Database Table error with the
> following message:
>
> "Error:  Database table EMPLOYEE for model Employee was not found.".
>
> The controller has been created per Cake's convention.  Am I missing a
> configuration step anywhere in Cake?   Any suggestions are greatly
> appreciated.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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