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.
Yes.
It takes some time to learn the conventions, but they amortize later (“convention over configuration”).
If a table contains two foreign keys, say vertex1_id and vertex2_id (<- following the CakePHP conventions), pointing to the same table, aliases are applied.
Edit0:
Maybe this is what you are looking for with regards to (2). Check the
foreignKeypart.