has many fetch with join
This commit is contained in:
@@ -38,7 +38,7 @@ struct employee {
|
||||
field::primary_key(op, "id", id);
|
||||
field::attribute(op, "first_name", first_name, 63);
|
||||
field::attribute(op, "last_name", last_name, 63);
|
||||
field::belongs_to(op, "dep_id", dep, utils::fetch_type::EAGER);
|
||||
field::belongs_to(op, "dep_id", dep, utils::fetch_type::LAZY);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user