We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8bc589a commit abe670eCopy full SHA for abe670e
1 file changed
user_guide_src/source/models/entities/009.php
@@ -8,14 +8,15 @@ class User extends Entity
8
{
9
protected $attributes = [
10
'id' => null,
11
- 'full_name' => null, // In the $attributes, the key is the column name
+ 'full_name' => null, // In the $attributes, the key is the db column name
12
'email' => null,
13
'password' => null,
14
'created_at' => null,
15
'updated_at' => null,
16
];
17
18
protected $datamap = [
19
+ // property_name => db_column_name
20
'name' => 'full_name',
21
22
}
0 commit comments