Naming conventions and field naming question for CakePHP
Posted
by
jphenow
on Stack Overflow
See other posts from Stack Overflow
or by jphenow
Published on 2011-03-07T23:38:14Z
Indexed on
2011/03/08
0:10 UTC
Read the original article
Hit count: 558
Okay so two questions very related:
1) Does following the naming convention for classes, controllers, database fields, etc. affect the framework's ability to work the way it was intended? (I'm a little new to working with a framework from the beginning of app development)
2) This question is more important if 1 is a yes. Say I have a table, A, that has 2 foreign keys pointing at the same table, B, but different entries (they're like edges of a graph that point at two vertices) how would I follow the naming convention of their database fields? All I can think to do is something like vertex_1_id and vertex_2_id but I don't know how the framework would handle that if the naming conventions are necessary for its functioning correctly.
© Stack Overflow or respective owner