collection has-many-to-many resolve progress

This commit is contained in:
Sascha Kühl
2026-02-03 15:36:58 +01:00
parent 73abd61eba
commit 4d886f0343
7 changed files with 135 additions and 45 deletions
+3 -2
View File
@@ -5,6 +5,7 @@
#include "matador/utils/foreign_attributes.hpp"
#include "matador/object/object_ptr.hpp"
#include "matador/object/collection.hpp"
#include "matador/object/many_to_many_relation.hpp"
#include <string>
@@ -15,7 +16,7 @@ struct recipe;
struct ingredient {
unsigned int id{};
std::string name;
std::vector<object::object_ptr<recipe> > recipes{};
object::collection<object::object_ptr<recipe> > recipes{};
ingredient() = default;
@@ -35,7 +36,7 @@ struct ingredient {
struct recipe {
unsigned int id{};
std::string name;
std::vector<object::object_ptr<ingredient> > ingredients{};
object::collection<object::object_ptr<ingredient> > ingredients{};
recipe() = default;