Re: cake naming conventions

2008-07-14 Thread Sai Krishna
Really thanks Amit, validation works now On Jul 14, 5:37 pm, "Amit Badkas" <[EMAIL PROTECTED]> wrote: > 2008/7/14 Sai Krishna <[EMAIL PROTECTED]>: > > > > > Hi, > > > I've a small query. When I've a database table called > > application_tools, how do I name cake controller, model files and > > th

Re: cake naming conventions

2008-07-14 Thread Amit Badkas
2008/7/14 Sai Krishna <[EMAIL PROTECTED]>: > > Hi, > > I've a small query. When I've a database table called > application_tools, how do I name cake controller, model files and > their respective classes. I tried most of naming permutation and > combinations, but I failed while doing cake model va

cake naming conventions

2008-07-14 Thread Sai Krishna
Hi, I've a small query. When I've a database table called application_tools, how do I name cake controller, model files and their respective classes. I tried most of naming permutation and combinations, but I failed while doing cake model validation Thank You Sai Krishna --~--~-~--~--

Re: Foreign Keys and Cake Naming Conventions

2007-04-03 Thread GreyCells
ts almost fully > > normalized). Most tables have one or two foreign key relationships > > with other tables, so we followed the Cake conventions fine for those > > and named all the tables in plural and with underscores between the > > related tables. There are a few tables ho

Re: Foreign Keys and Cake Naming Conventions

2007-04-02 Thread [EMAIL PROTECTED]
zed). Most tables have one or two foreign key relationships > > with other tables, so we followed the Cake conventions fine for those > > and named all the tables in plural and with underscores between the > > related tables. There are a few tables however that have as many as 6 > >

Re: Foreign Keys and Cake Naming Conventions

2007-04-02 Thread uk_maul
gt; or 8 foreign keys. I would like to know how to follow the Cake naming > conventions for those tables and how can we set up the relationships > for those tables in the models and how it will impact the automagic > database functions that depend on the naming c

Re: Foreign Keys and Cake Naming Conventions

2007-04-02 Thread [EMAIL PROTECTED]
http://manual.cakephp.org/appendix/conventions Foreign keys should not affect the naming of a table. Nor would the number of keys affect the naming of the table or of the fields. Foreign keys, ideally, should be the name of the model + underscore + 'id' So multiple foreign keys should not affect

Re: Foreign Keys and Cake Naming Conventions

2007-04-02 Thread gwoo
tables = plural (posts) jointables = alphabetic, (posts_tags) foreignKey = singular _id (post_id) model = singular (Post) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send

Foreign Keys and Cake Naming Conventions

2007-04-02 Thread uk_maul
in plural and with underscores between the related tables. There are a few tables however that have as many as 6 or 8 foreign keys. I would like to know how to follow the Cake naming conventions for those tables and how can we set up the relationships for those tables in the models and how it will