diff --git a/docs/guide/db-active-record.md b/docs/guide/db-active-record.md index 10b4cb6..ded7180 100644 --- a/docs/guide/db-active-record.md +++ b/docs/guide/db-active-record.md @@ -96,6 +96,12 @@ $customer->email = 'jane@example.com'; $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 ----------------------