Hello, The code to deduce table relationship is in ModelTask::doAssociations() defined in /cake/console/libs/tasks/model.php You also have to check Inflector class defined in /cake/libs/inflector.php. This define naming conventions.
I think this mechanism is based on the cakePHP naming convention and there is no template for this purpose. So you need modify the source code in order to customize bake behaviors. Best Wishes, Takuo Shiono zeugme wrote: > Sorry for reposting but I really would like to custimize bake > generation, if it is possible. > Are there templates ? Same as scaffolding ? > > Also, I need more info on table relationship taken into account in the > generated model. > > Any clue appreciated, including pointer to the cake code > > zeugme wrote: >> Hi the list ! >> >> Do you know if the bake generator is able to deduce table relationship >> when it generate the model ? >> If it is possible, I suppose it need a DB strict name convention ... any >> info, doc, tuto, examples, >> >> Also, how to customize baked view, model, controller ? Any tips, >> example, recommendation ? >> Where could I find documented all the "special variable" available ? >> (I'm guessing I'll need an array of the field in a view for example) >> >> Thanks ! >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
