Commit 228f8109 by Carsten Brandt

a note about database naming style

fixes #6760
parent 945fb823
...@@ -96,6 +96,12 @@ $customer->email = 'jane@example.com'; ...@@ -96,6 +96,12 @@ $customer->email = 'jane@example.com';
$customer->save(); $customer->save();
``` ```
> Note: Obviously, because column names become attribute names of the active record class directly, you
> get attribute names with underscores if you have that kind of naming schema in your database. For example
> a column `user_name` will be accessed as `$user->user_name` on the active record object. If you are concerned about code style
> you should adopt your database naming schema to use camelCase too. However, camelCase if not a requirement, Yii can work
> well with any other naming style.
Connecting to Database Connecting to Database
---------------------- ----------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment