On 9/28/07, Cory Dee <[EMAIL PROTECTED]> wrote: > > I had a feeling that there was going to be an "easier" way to do > things. > > The problem is, is that I'm not aware of any way to specify the > table's name. The below code still returns "No Database table for > model Book (expected "books"), create it first.", as the table is > called "bib", rather than "books", as the framework is expecting. >
You can override any of the conventions that Cake uses for the models including the name of the table. var $useTable = 'LegacyTableName'; Hope that helps. -- Chris Hartjes Senior Developer Cake Development Corporation http://www.cakedevelopment.com My motto for 2007: "Just build it, damnit!" @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 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 -~----------~----~----~----~------~----~------~--~---