Welcome Guest, Not a member yet? Register   Sign In
Naming database columns and form inputs
#3

Thanks. 
following these conventions leads to a conflict with CI4 entities. 
Say I have a database with a field name called "some_category
Say I then instantiate an entity representing a row from this table and call it $myEntity. 
To refer to some_category I will need to call:
Code:
$myEntity->some_category


This contravenes the standard I see (but haven't found written down) that property names must  be in camelCase.

Are we ok with this conflict?
Reply


Messages In This Thread
RE: Naming database columns and form inputs - by motownphilippe - 03-13-2021, 08:09 PM



Theme © iAndrew 2016 - Forum software by © MyBB