enabled has many relation
This commit is contained in:
parent
73c13026d8
commit
6cb501ded9
|
|
@ -25,7 +25,7 @@ struct order
|
||||||
std::string ship_region;
|
std::string ship_region;
|
||||||
std::string ship_postal_code;
|
std::string ship_postal_code;
|
||||||
std::string ship_country;
|
std::string ship_country;
|
||||||
std::vector<matador::object::object_ptr<order_details>> order_details_;
|
std::vector<object::object_ptr<order_details>> order_details_;
|
||||||
|
|
||||||
template<class Operator>
|
template<class Operator>
|
||||||
void process(Operator &op) {
|
void process(Operator &op) {
|
||||||
|
|
@ -42,7 +42,7 @@ struct order
|
||||||
field::attribute(op, "ship_region", ship_region, 255);
|
field::attribute(op, "ship_region", ship_region, 255);
|
||||||
field::attribute(op, "ship_postal_code", ship_postal_code, 255);
|
field::attribute(op, "ship_postal_code", ship_postal_code, 255);
|
||||||
field::attribute(op, "ship_country", ship_country, 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);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue