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
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
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
--~--~-~--~--
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
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
> >
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
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
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
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