added collection, collection proxy and collection resolver implementations
This commit is contained in:
@@ -636,13 +636,6 @@ TEST_CASE_METHOD(QueryFixture, "Test load entity with lazy belongs to relation",
|
||||
REQUIRE(count.is_ok());
|
||||
REQUIRE(*count == 5);
|
||||
|
||||
// auto emps_result = query::select({EMPLOYEE.id, EMPLOYEE.first_name, EMPLOYEE.last_name, DEPARTMENT.id, DEPARTMENT.name})
|
||||
// .from(EMPLOYEE)
|
||||
// .join_left(DEPARTMENT)
|
||||
// .on(EMPLOYEE.dep_id == DEPARTMENT.id)
|
||||
// .order_by(EMPLOYEE.id).asc()
|
||||
// .fetch_all<employee>(db);
|
||||
|
||||
auto emps_result = query::select({EMPLOYEE.id, EMPLOYEE.first_name, EMPLOYEE.last_name, EMPLOYEE.dep_id})
|
||||
.from(EMPLOYEE)
|
||||
.order_by(EMPLOYEE.id).asc()
|
||||
|
||||
Reference in New Issue
Block a user