handle many-to-many relations separately when process entities

This commit is contained in:
2024-04-07 14:45:57 +02:00
parent 30e2e0c221
commit fa7ff832c9
19 changed files with 484 additions and 96 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ struct order
field::attribute(op, "ship_region", ship_region, 255);
field::attribute(op, "ship_postal_code", ship_postal_code, 255);
field::attribute(op, "ship_country", ship_country, 255);
field::has_many(op, "order_details", order_details_, utils::fetch_type::EAGER);
field::has_many(op, order_details_, "order_id", utils::fetch_type::EAGER);
}
};