Reputation: 13
I just wondering for table field naming e.g. first_name.
in the data model. Is it ok i name as first_name also?
Or must i change to firstName?
Thanks
Upvotes: 1
Views: 1021
Reputation: 11
since this field is not a primary key or a foreign key, there is no problem
Upvotes: 0
Reputation: 9964
Field names should use underscores according to the CakePHP conventions, see http://book.cakephp.org/view/24/Model-and-Database-Conventions
Upvotes: 5
Reputation: 268324
Which naming convention you use is entirely up to you, just so long as its not an invalid one (including spaces, etc). Go with what is most easily understood by you and your team.
Upvotes: 0