added belongs to and has one tests

This commit is contained in:
2026-05-13 16:09:35 +02:00
parent e3618c60e3
commit 1cdd83cb31
8 changed files with 275 additions and 81 deletions
+4 -15
View File
@@ -1,5 +1,5 @@
#ifndef OOS_ACCESS_HPP
#define OOS_ACCESS_HPP
#ifndef MATADOR_ACCESS_HPP
#define MATADOR_ACCESS_HPP
#include "matador/utils/primary_key_attribute.hpp"
#include "matador/utils/field_attributes.hpp"
@@ -7,17 +7,7 @@
#include <optional>
namespace matador {
enum class cascade_type;
namespace utils {
class field_attributes;
class foreign_attributes;
class primary_key_attribute;
}
namespace access {
namespace matador::access {
template<class Operator, class Type>
void process(Operator &op, Type &object) {
object.process(op);
@@ -92,6 +82,5 @@ void has_many_to_many(Operator &op, const char *id, ContainerType &c, const util
op.on_has_many_to_many(id, c, attr);
}
}
}
#endif //OOS_ACCESS_HPP
#endif //MATADOR_ACCESS_HPP