This issue is from the same bean of #98, So I've OrderBean and Products where is connected by OrderItemBean
So looking for insert and update methods on generate file, I was thinking about cascate flag, what do u think about it, some ORM you can setup to create only the relation (pivot table).
At Jaguar ORM the cascate method try to insert Product and OrderItem
for (final child in model.orderItems) {
await productBean.insert(child, cascade: cascade);
await orderItemBean.attach(child, model);
}
So I'd like to work on it, maybe a new flag and on this loop check if product already exist and avoid to create it
Or maybe, I just need to create a new relation hasMany between Order and OrderItem
This issue is from the same bean of #98, So I've
OrderBean
andProducts
where is connected byOrderItemBean
So looking for insert and update methods on generate file, I was thinking about
cascate
flag, what do u think about it, some ORM you can setup to create only the relation (pivot table). At Jaguar ORM the cascate method try to insertProduct
andOrderItem
So I'd like to work on it, maybe a new flag and on this loop check if product already exist and avoid to create it
Or maybe, I just need to create a new relation hasMany between
Order
andOrderItem