renamed fetch types to be pascal case
This commit is contained in:
@@ -29,7 +29,7 @@ struct student {
|
||||
namespace field = matador::access;
|
||||
field::primary_key(op, "id", id);
|
||||
field::attribute(op, "name", name, 255);
|
||||
field::has_many_to_many(op, "student_courses", courses, "student_id", "course_id", utils::fetch_type::LAZY);
|
||||
field::has_many_to_many(op, "student_courses", courses, "student_id", "course_id", utils::fetch_type::Lazy);
|
||||
}
|
||||
|
||||
};
|
||||
@@ -49,7 +49,7 @@ struct course {
|
||||
namespace field = matador::access;
|
||||
field::primary_key(op, "id", id);
|
||||
field::attribute(op, "title", title, 255);
|
||||
field::has_many_to_many(op, "student_courses", students, utils::fetch_type::EAGER);
|
||||
field::has_many_to_many(op, "student_courses", students, utils::fetch_type::Eager);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user