has many fetch progress

This commit is contained in:
Sascha Kühl
2025-02-18 16:19:48 +01:00
parent 901d9c071a
commit 784f6e768d
5 changed files with 57 additions and 22 deletions
+2 -2
View File
@@ -170,7 +170,7 @@ TEST_CASE_METHOD(SessionFixture, "Use session to find all objects with one-to-ma
auto all_departments = find_result.release();
std::vector<object_ptr<department>> departments_repo;
for (auto it = all_departments.begin(); it != all_departments.end(); ++it) {
std::cout << "author: " << it->name << " (employees: " << it->employees.size() << ")\n";
std::cout << "department: " << it->name << " (employees: " << it->employees.size() << ")\n";
departments_repo.emplace_back(it.release());
}
REQUIRE(departments_repo.size() == 2);
@@ -197,6 +197,6 @@ TEST_CASE_METHOD(SessionFixture, "Use session to find all objects with one-to-ma
all_departments = find_result.release();
for (auto it = all_departments.begin(); it != all_departments.end(); ++it) {
std::cout << "author: " << it->name << " (employees: " << it->employees.size() << ")\n";
std::cout << "department: " << it->name << " (employees: " << it->employees.size() << ")\n";
}
}