From 6cb501ded9a124bf294a6d97dfb27587d0ebce57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sascha=20K=C3=BChl?= Date: Fri, 7 Feb 2025 13:00:33 +0100 Subject: [PATCH] enabled has many relation --- test/models/order.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/models/order.hpp b/test/models/order.hpp index c576f2b..f4af72b 100644 --- a/test/models/order.hpp +++ b/test/models/order.hpp @@ -25,7 +25,7 @@ struct order std::string ship_region; std::string ship_postal_code; std::string ship_country; - std::vector> order_details_; + std::vector> order_details_; template void process(Operator &op) { @@ -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_id", utils::fetch_type::EAGER); + field::has_many(op, "order_details", order_details_, "order_id", utils::fetch_type::EAGER); } };