renamed in Models: map_fields() to fields(), prepare_table() to table()
This commit is contained in:
1 parent
e64bd1fba8
commit
ee354d2ded
7 files changed
+22
-23
No files matched your search
@@ -49,7 +49,7 @@ User::User()
|
||||
|
||||
|
||||
|
||||
void User::map_fields()
|
||||
void User::fields()
|
||||
{
|
||||
field(L"id", id, morm::FT::no_insertable | morm::FT::no_updatable | morm::FT::primary_key);
|
||||
field(L"login", name); // IMPROVEME set the same name, either 'login' or 'name'
|
||||
@@ -71,9 +71,9 @@ void User::map_fields()
|
||||
}
|
||||
|
||||
|
||||
void User::prepare_table()
|
||||
void User::table()
|
||||
{
|
||||
table(L"core", L"user");
|
||||
table_name(L"core", L"user");
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user