I'm not understanding you. But, it seems you are not using the bake shell properly. In linux you must type: cakbe bake or cake bake model, and when it asks for params lets say name of the table (is the name cake expect the table might have). but if your table doesnt follow cakephp conventions, you must type the correct name of the table for that model. for example: If you have a table called user, cake in the command: cake bake model, must expect that your table should be name as "users", instead of "user", so if this happen, your are obligated to say to the script that "users" is not the table name, and type "user" in the script for correct coding generation. then, your model is going to be called "user.php", instead of cakephp conventional name "users.php".
I hope this can help you. Regards. On Jul 24, 1:50 am, Anibigi <anamikasarkhe...@gmail.com> wrote: > Hi, > > I am using Bake to create models for my database tables. > I have run into a little problem. > > I have 25 tables .... > > I strated baking the models until for one of the database tables the > bake started giving a name of it own to the model,file and class. > > For example ,the table in database is named : 'risk_manager' > > (It has association with other tables which i'm defining while baking) > > However the model for this turns up as a file called "risk.php" and > the class name is called "risk" (but it is mapped to the correct > table.) > > Why is this happening...? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---