collection has-many-to-many resolve progress
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user