Skip to content

Commit abe670e

Browse files
committed
docs: improve code comments
1 parent 8bc589a commit abe670e

File tree

1 file changed

+2
-1
lines changed
  • user_guide_src/source/models/entities

1 file changed

+2
-1
lines changed

user_guide_src/source/models/entities/009.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,15 @@ class User extends Entity
88
{
99
protected $attributes = [
1010
'id' => null,
11-
'full_name' => null, // In the $attributes, the key is the column name
11+
'full_name' => null, // In the $attributes, the key is the db column name
1212
'email' => null,
1313
'password' => null,
1414
'created_at' => null,
1515
'updated_at' => null,
1616
];
1717

1818
protected $datamap = [
19+
// property_name => db_column_name
1920
'name' => 'full_name',
2021
];
2122
}

0 commit comments

Comments
 (0)